|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityInterface
Interface between engine and entity.
Method Summary | |
---|---|
Location |
createLocation(java.lang.Object... args)
Creates location in specific for the topology way, for example createLocation(2,1) |
float |
distance(Location one,
Location another)
Compute distance in some metrics, depending on current topology of space |
float |
entityCost(Entity me,
java.lang.String entityKind)
Return cost of particular entity kind. |
java.lang.Integer |
getId(Entity me)
Gives unique integer id for entiry, to be used as a handle for it. |
Location |
getLocation(Entity me)
Figure out current position of entity |
int |
getTurnsCount()
|
int |
timeTillKilled(Entity me)
Return approximate amount of time remaining till this entity will be killed by engine as hang. |
Method Detail |
---|
java.lang.Integer getId(Entity me)
Location getLocation(Entity me)
float distance(Location one, Location another)
int getTurnsCount()
int timeTillKilled(Entity me)
Location createLocation(java.lang.Object... args)
java.lang.IllegalArgumentException
- if argument set not suitable
for current topologyfloat entityCost(Entity me, java.lang.String entityKind)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |