Package scripts :: Package objects :: Script action :: Class UseAction
[hide private]
[frames] | no frames]

Class UseAction

source code

object --+    
         |    
    Action --+
             |
            UseAction

Action for carryable items. It executes special commands that can be only used on carryable utens

Instance Methods [hide private]
 
__init__(self, controller, item, commands=None)
Basic action constructor
source code
 
execute(self)
To be overwritten
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, controller, item, commands=None)
(Constructor)

source code 

Basic action constructor

Parameters:
  • controller (scripts.GameSceneController) - A reference to the GameSceneController.
  • item (CarryableItem) - Item on which the action is called
  • commands (Dictionary) - Special commands that are executed
Overrides: object.__init__

execute(self)

source code 

To be overwritten

Overrides: Action.execute
(inherited documentation)