|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.universe.DBItem | +--org.gjt.universe.PlayerBase
Field Summary | |
private CivID |
civID
|
private static PlayerID |
currentID
|
private PlayerID |
ID
|
private java.lang.String |
name
|
private UniverseScriptObject |
scriptObject
This is the tcl script interpreter. |
private PlayerThread |
thread
|
private boolean |
threadstarted
|
Constructor Summary | |
protected |
PlayerBase(boolean undefined)
This constructor is only for the PlayerUndefined object. |
protected |
PlayerBase(CivID aCivID)
Standard base constructor that initializes the object. |
Method Summary | |
void |
addScript(java.lang.String str)
This loads a script into the script object |
Civ |
getCiv()
This method returns the civilization which the player is directing. |
PlayerID |
getID()
|
Index |
getIndex()
See getID() in the subclasses for a typed version. |
java.lang.String |
getName()
|
CivID |
getOwner()
This method returns the civilization which is being directed by the player. |
PlayerThread |
getThread()
|
(package private) abstract void |
initializeThreads()
|
void |
instantiateScriptObject()
This creates the tcl script object |
(package private) void |
setName(java.lang.String name)
|
(package private) void |
setThread(PlayerThread thread)
|
(package private) void |
start()
|
abstract void |
Submit()
|
Methods inherited from class org.gjt.universe.DBItem |
getLocation, specificDisplayDebug |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static PlayerID currentID
private PlayerID ID
private java.lang.String name
private CivID civID
private transient PlayerThread thread
private UniverseScriptObject scriptObject
private transient boolean threadstarted
Constructor Detail |
protected PlayerBase(CivID aCivID)
protected PlayerBase(boolean undefined)
Method Detail |
public void instantiateScriptObject()
public void addScript(java.lang.String str)
public PlayerID getID()
public Index getIndex()
DBItem
getIndex
in class DBItem
public CivID getOwner()
getOwner
in class DBItem
public Civ getCiv()
public abstract void Submit()
public java.lang.String getName()
getName
in class DBItem
void setName(java.lang.String name)
void setThread(PlayerThread thread)
public PlayerThread getThread()
void start()
abstract void initializeThreads()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |