Method | Description | |
---|---|---|
Distance ( |
Measures the distance from this lifelet to another.
|
|
Distance ( |
Measures the distance from this lifelet to another.
|
|
Distance ( |
Measures the distance from this lifelet to a specific point.
|
|
Draw ( |
Draws the current state of the lifelet to the graphics context.
|
|
Lifelet ( |
Initializes a new instance of the LifeSimulation.Core.Lifelet class.
|
|
PrepareSimulate ( ) : void |
Prepares a lifelet for simulation by an extending class.
|
|
Shell ( ) : |
||
Simulate ( ) : void |
Simulate this instance for one timestep. Extending classes must call base.Simulate() otherwise they are disqualified.
|
|
VerifyIntegrity ( ) : void |
Method | Description | |
---|---|---|
attack ( |
Attacks another lifelet with the given amount of energy.
|
|
audibleMessages ( ) : List |
Returns all audible messages.
|
|
closestLifelet ( ) : |
Returns the closest visible lifelet.
|
|
debugDraw ( |
||
getLifeletByUID ( long uid ) : |
Returns the visible lifelet by UID.
|
|
giveEnergy ( |
Gives a specific amount of energy to another lifelet.
|
|
move ( |
Sets a request to move the lifelet with the given velocity.
|
|
moveRandomly ( double speed ) : void |
Sets a request to move the lifelet randomly with the given speed.
|
|
moveToDestination ( |
Sets a request to move the lifelet in the direction of destination with the given speed.
|
|
talk ( char message ) : void |
Creates a new message originating from this lifelet.
|
|
visibleFood ( ) : List |
Returns all visible food.
|
|
visibleLifelets ( ) : List |
Returns all visible lifelets.
|
Method | Description | |
---|---|---|
die ( ) : void | ||
recieveAttack ( |
||
recieveEnergy ( |
public Distance ( |
||
other | ||
return | double |
public Lifelet ( |
||
world | ||
pos | ||
return | System |
protected attack ( |
||
other | ||
amount | double | |
return | void |
protected closestLifelet ( ) : |
||
return |
protected debugDraw ( |
||
g | ||
return | void |
protected getLifeletByUID ( long uid ) : |
||
uid | long | |
return |
protected giveEnergy ( |
||
other | ||
amount | double | |
return | void |
protected moveRandomly ( double speed ) : void | ||
speed | double | |
return | void |
protected moveToDestination ( |
||
destination | ||
speed | double | |
return | void |