Package net.sf.colossus.xmlparser
Class TerrainRecruitLoader.CreatureAndNumber
java.lang.Object
net.sf.colossus.xmlparser.TerrainRecruitLoader.CreatureAndNumber
- Direct Known Subclasses:
TerrainRecruitLoader.RecruitNumber
,TerrainRecruitLoader.StartingNumber
- Enclosing class:
TerrainRecruitLoader
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.
- Author:
- Romain Dolbeau
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) CreatureType
(package private) String
getName()
(package private) int
toString()
Textual representation of the data.
-
Field Details
-
creature
The Creature in the pair (if it exists) -
name
The Name -
number
private final int numberThe number in the pair -
checked
private boolean checked
-
-
Constructor Details
-
CreatureAndNumber
- Parameters:
n
- The Name of the creaturei
- The Number
-
-
Method Details
-
getName
String getName() -
getCreature
CreatureType getCreature() -
getNumber
int getNumber() -
toString
Textual representation of the data.
-