parpg :: objects :: actors :: ActorBehaviour :: Class ActorBehaviour
[hide private]
[frames] | no frames]

Class ActorBehaviour

source code

fife.fife.InstanceActionListener --+
                                   |
                                  ActorBehaviour

Fife agent listener

Instance Methods [hide private]
 
__init__(self, layer) source code
 
attachToLayer(self, agent_ID)
Attaches to a certain layer
source code
integer"
getX(self)
Get the NPC's x position on the map.
source code
integer
getY(self)
Get the NPC's y position on the map.
source code
 
onNewMap(self, layer)
Sets the agent onto the new layer.
source code
 
idle(self)
Returns: None
source code
 
onInstanceActionFinished(self, instance, action) source code
Method Details [hide private]

attachToLayer(self, agent_ID)

source code 

Attaches to a certain layer

Parameters:
  • agent_ID (String) - ID of the layer to attach to.
Returns:
None

getX(self)

source code 

Get the NPC's x position on the map.

Returns: integer"
the x coordinate of the NPC's location

getY(self)

source code 

Get the NPC's y position on the map.

Returns: integer
the y coordinate of the NPC's location

idle(self)

source code 
Returns:
None