| Trees | Index | Help |
|
|---|
| Package svs_simulation :: Package agents :: Module basic_agents :: Class MovingAgent |
|
Entity --+
|
BasicSpatialEntity --+
|
SpatialEntity --+
|
SimAgentBaseClass --+
|
SimAgent --+
|
MovingAgent
| Method Summary | |
|---|---|
__init__(self)
| |
Called when end of path is reached. | |
Called when the entity enters a new path node. | |
Called when the entity leaves a path node. | |
Sets path for entity to follow. | |
Stops movement. | |
Starts movement. | |
Starts agent moving towards specifed node on path. | |
Receives a class providing steering behaviour which is instantiated and applied to agent. | |
Sets a target point for agent to move towards. | |
Updates agent location. | |
Forwards update call from world. | |
| Inherited from SimAgent | |
Changes current state in stateManager. | |
Returns encoded representation of self. | |
Handles event from simulation. | |
Sets new task for agent. | |
Forwards start call from world. | |
Forwards stop call from world. | |
| Inherited from SimAgentBaseClass | |
Returns string representation of object. | |
Tests if coordinates are contaiend within structure bounds. | |
Applies encoded data to self. | |
Returns maximum x coordinate from bounds. | |
Returns maximum y coordinate from bounds. | |
Returns minimum x coordinate from bounds. | |
Returns minimum y coordinate from bounds. | |
Returns name for structure. | |
Returns the bounds of the structure as mapped to the world coordinates. | |
| |
| Inherited from SpatialEntity | |
Called when entity enters a new structure. | |
Called when entity is added to world. | |
Called when entity leaves an existing structure. | |
Tests if the given coordinates lie within the world bounds of the entity. | |
| |
| |
| |
| Inherited from Entity | |
Called when entity enters a partition. | |
Called when entity is leaves a structure. | |
Called when structure is removed world. | |
| boolean |
Returns tag state. |
Sets the structure and partition that the entity is within. | |
Forwards data representing change in entity to process handler. | |
| Method Details |
|---|
endPath(self)Called when end of path is reached. |
enterPathNode(self, node)Called when the entity enters a new path node. |
exitPathNode(self, node)Called when the entity leaves a path node. |
followPath(self, path=None, name=None, start=None, destination=None, reverse=False)Sets path for entity to follow. |
halt(self)Stops movement. |
move(self)Starts movement. |
moveToNextPathNode(self, node)Starts agent moving towards specifed node on path. |
setSteeringBehaviour(self, steeringClass)Receives a class providing steering behaviour which is instantiated and applied to agent. |
setTargetPoint(self, x, y)Sets a target point for agent to move towards. |
updateLocation(self, timeElapsed)Updates agent location. |
updateWorld(self, simTime)Forwardsupdate call from world.
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Oct 20 15:30:26 2005 | http://epydoc.sf.net |