|
|||||||||||
| 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.KnowledgeBase
This is the base class for all Knowledge objects. Knowledge objects are used to implement the "fog of war".
| Field Summary | |
private int |
age
|
private static KnowledgeID |
currentID
|
private KnowledgeID |
ID
|
private CivID |
owner
|
| Constructor Summary | |
protected |
KnowledgeBase()
Constructor for an Knowledge object that requires an ID. |
protected |
KnowledgeBase(boolean dummy)
Constructor for an undefined Knowledge object. |
protected |
KnowledgeBase(CivID AID)
|
| Method Summary | |
(package private) abstract void |
createSubKnowledge()
This method is called when a new knowledge is created. |
(package private) int |
getAge()
Returns the "age" (turn number) of this knowledge. |
KnowledgeID |
getID()
Returns the ID of this knowledge. |
Index |
getIndex()
Returns the ID of this knowledge. |
java.lang.String |
getName()
|
CivID |
getOwner()
Returns the owner of this Knowledge. |
(package private) void |
setOwner(CivID AID)
Sets the owner of this knowledge. |
(package private) void |
updateAge()
Updates the age of this knowledge to the current turn. |
| 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 KnowledgeID currentID
private KnowledgeID ID
private CivID owner
private int age
| Constructor Detail |
protected KnowledgeBase(boolean dummy)
protected KnowledgeBase()
protected KnowledgeBase(CivID AID)
| Method Detail |
public KnowledgeID getID()
public Index getIndex()
getIndex in class DBItempublic java.lang.String getName()
getName in class DBItemvoid setOwner(CivID AID)
public CivID getOwner()
getOwner in class DBItemint getAge()
void updateAge()
abstract void createSubKnowledge()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||