Attempts to initiate a method of attack to all "hostile" agents in the landscape
Hostiles may be definied by isCompatible method, although, we may want same
agent classes beating up on each other.
Does the agent like having other entities in the area
companionshipLevel
public int companionshipLevel
A factor that indicates the desire of a compatable companion
currentAge
public int currentAge
Incremented each "turn"
currentHealthFactor
public int currentHealthFactor
How healthy is the agent?
This can be brought down by
currentHungerFactor
public int currentHungerFactor
How hungry is the agent?
currentSize
public int currentSize
How big is the agent?
See Also:
grow
currentSleepFactor
public int currentSleepFactor
How sleep is the agent?
Note that some agents may not sleep
dominantGender
public int dominantGender
This is the "mother" gender. The children will be of this gender's class.
We could do away with this by saying that the 0 gender is the "dominant" gender.
Although, it could be cool if we make this part of the gene pool... =)
gender
public int gender
Which gender this particular agent is.
Should be less than levelOfSexuality.
leadershipLevel
public int leadershipLevel
Leadership level
We could fold this into the dominant gender. (i.e. Alpha females)
A high leadership level in an agent means that other compatible agents
are likely to follow the actions of this one.
lengthOfLife
public int lengthOfLife
This is the life span of the agent. Probably computed at spawn time (for our ease).
The agent can still die due to hunger, death, etc.
levelOfSexuality
public int levelOfSexuality
Returns the number of "mates" that are needed to successfully reproduce
maxHealthFactor
public int maxHealthFactor
What is the highest state of health for the agent?
Attempts to initiate a method of attack to all "hostile" agents in the landscape
Hostiles may be definied by isCompatible method, although, we may want same
agent classes beating up on each other.
I believe that attacking and defense will be implemented much later on though.
Can this agent interact with a particular agent?
This will pretty much have to predefined using instanceof calls.
(i.e. a bee and a plant mix for pollen...)
This could be a cool concept. As I mentioned before, the DNA dictates the
compatibility. Therefore, any Agents with "compatible" DNA can reproduce.
For ease of use, any children are produdced by the dominant gender.