|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Buildable interface for objects that are built by the economy or by file input. Providing cost parameters of the buildable, and a createInstance method for the economy to call when the object is built and requires instantiation by the model that created a Buildable object. On instantiation each buildable object must register itself with the economics package by calling Ecomomics.registerBuildable(this)
| Method Summary | |
Square |
buildSquare(Administration administration)
Return a legal square in which the object can be built, if it exists, otherwise return null. |
java.lang.Object |
createInstance(Civilization civ,
Square square)
Called by economy or by file input to instantiate the buildable object in a particular square. |
java.lang.Object |
createInstance(TaskForce taskForce)
Called by file input to create scenario units. |
java.lang.String |
getBuildableCategory()
Returns the category of Buildable. |
Cost |
getCost()
Provides Economy with cost information on this type of buildable object. |
java.lang.String |
getName()
Return the name of the object that is buildable. |
| Method Detail |
public Cost getCost()
public java.lang.Object createInstance(Civilization civ,
Square square)
public java.lang.Object createInstance(TaskForce taskForce)
taskForce - the taskForce associated with the new unit.
public Square buildSquare(Administration administration)
public java.lang.String getName()
public java.lang.String getBuildableCategory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||