|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colossus.xmlparser.TerrainRecruitLoader.CreatureAndNumber
private abstract class TerrainRecruitLoader.CreatureAndNumber
Helper class, associating a Creature and a number. The basic identification is the name (because of the hack of using special name for special stuff...) but the CreatureType is there to avoid reloading from the Variant all the time. We can't look-up at creation time, because the variant isn't available yet, so we delay until the first call to getCreature.
Field Summary | |
---|---|
private boolean |
checked
|
private CreatureType |
creature
The Creature in the pair (if it exists) |
private java.lang.String |
name
The Name |
private int |
number
The number in the pair |
Constructor Summary | |
---|---|
TerrainRecruitLoader.CreatureAndNumber(java.lang.String n,
int i)
|
Method Summary | |
---|---|
(package private) CreatureType |
getCreature()
|
(package private) java.lang.String |
getName()
|
(package private) int |
getNumber()
|
java.lang.String |
toString()
Textual representation of the data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private CreatureType creature
private final java.lang.String name
private final int number
private boolean checked
Constructor Detail |
---|
public TerrainRecruitLoader.CreatureAndNumber(java.lang.String n, int i)
n
- The Name of the creaturei
- The NumberMethod Detail |
---|
java.lang.String getName()
CreatureType getCreature()
int getNumber()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |