|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface provides access to information about a particular Critter. The initial values for some of these parameters are provided when a Critter constructor creates a new CritterInfo instance using createCritterInfoInstance. The other parameters are calculated and updated dynamically as the model runs.
)| Method Summary | |
int |
getAge()
Get the current age of this Critter, in ticks. |
int |
getBurnRate()
Get the rate at which energy is used up, in calories per step. |
int |
getCurCalories()
Get the number of calories this Critter has at this time |
int |
getLifeSpan()
Get the life span defined for this Critter, in ticks. |
int |
getMaxCalories()
Get the maximum number of calories this Critter can store |
int |
getPower()
Get the current power of this Critter, in arbitrary units. |
int |
getReproductionSpan()
Get the number of ticks between reproduction events. |
int |
getStrength()
Get the maximum strength of this Critter, in arbitrary units |
| Method Detail |
public int getAge()
public int getLifeSpan()
public int getReproductionSpan()
public int getCurCalories()
public int getMaxCalories()
public int getBurnRate()
public int getStrength()
public int getPower()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||