|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeingInterface
The BeingInterface defines everything being knows about reality it lives in. For random numbers and other utility functions see universum.util.Util (don't use java.util.random() or custom implementation for reproducablity reasons).
Util
Method Summary | |
---|---|
float |
getEnergy(Being me)
Every being is characterized by energy, this function returns current energy of the being |
float |
getMass(Being me,
java.lang.Integer id)
Provides rounded up mass of being described by id |
java.util.List<PointInfo> |
getNeighbourInfo(Being me)
Information about points in the neighbourhood |
java.lang.Object |
getOwner(Being me,
java.lang.Integer id)
Provides owner's handle, for simple FoF detection |
PointInfo |
getPointInfo(Being me)
Provide information about point where being is |
java.util.List<Location> |
getReachableLocations(Being me)
Get the locations we can go to in one turn (depends on speed) |
void |
log(Being me,
java.lang.String s)
Logging facility |
Location |
stepToward(Being me,
Location to)
Compute step towards a location. |
Methods inherited from interface universum.bi.EntityInterface |
---|
createLocation, distance, entityCost, getId, getLocation, getTurnsCount, timeTillKilled |
Method Detail |
---|
java.lang.Object getOwner(Being me, java.lang.Integer id)
float getMass(Being me, java.lang.Integer id)
float getEnergy(Being me)
PointInfo getPointInfo(Being me)
java.util.List<PointInfo> getNeighbourInfo(Being me)
java.util.List<Location> getReachableLocations(Being me)
Location stepToward(Being me, Location to)
void log(Being me, java.lang.String s)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |