| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package entities :: Module base_entities :: Class MovingEntity_OLD |
|
Entity --+
|
MovingEntity_OLD
Entity with basic movement capabilities.
@ivar self.velocity:velocity of entity.| Method Summary | |
|---|---|
__init__(self)
| |
Checks if speed is at maximum. | |
| boolean |
Given a target position, this method rotates the entity's heading and side vectors by an amount not greater than MovingEntity.maxTurnRate until it directly faces the
target. |
First checks that the given heading is not a vector of zero length. | |
Return current speed. | |
Return current speed squared. | |
| Inherited from Entity | |
Applies encoded data to self. | |
Returns encoded representation of self. | |
Called when entity enters a partition. | |
Called when entity enters a structure. | |
Called when entity is added to world. | |
Called when entity is leaves a structure. | |
Called when structure is removed world. | |
If the entity has a name, return this, otherwise returns a name created from its class name and unique id. | |
Handles event form simulation. | |
| boolean |
Returns tag state. |
Sets the structure and partition that the entity is within. | |
Forwards data representing change in entity to process handler. | |
| |
Called when the simulation world starts running, or if an entity has been added to a world after it has started. | |
Called when the simulation world stops running, or if an entity has been removed from a world after it has started. | |
Called when the simulation world updates. | |
| Method Details |
|---|
isSpeedMaxedOut(self)Checks if speed is at maximum. |
rotateHeadingToFacePosition(self, target)Given a target position, this method rotates the entity's heading and side vectors by an amount not greater thanMovingEntity.maxTurnRate until it directly faces the
target.
|
setHeading(self, newHeading)First checks that the given heading is not a vector of zero length. If the new heading is valid this function sets the entity's heading and side vectors accordingly.
|
speed(self)Return current speed. |
speedSq(self)Return current speed squared. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:24 2005 | http://epydoc.sf.net |