pygamelib.actuators.Behavioral¶
-
class
pygamelib.actuators.
Behavioral
(parent)¶ The behavioral actuator is inheriting from Actuator and is adding a next_action() method. The actual actions are left to the actuator that implements Behavioral.
Parameters: parent – the item parent. -
__init__
(parent)¶ The constructor simply construct an Actuator. It takes on positional paraneter: the parent object.
Methods
__init__
(parent)The constructor simply construct an Actuator. next_action
()That method needs to be implemented by all behavioral actuators or a NotImplementedError exception will be raised. next_move
()That method needs to be implemented by all actuators or a NotImplementedError exception will be raised. pause
()Set the actuator state to PAUSED. start
()Set the actuator state to RUNNING. stop
()Set the actuator state to STOPPED. -