Package parpg :: Package objects :: Module action :: Class ExamineAction
[hide private]
[frames] | no frames]

Class ExamineAction

source code

object --+    
         |    
    Action --+
             |
            ExamineAction

Examine an object.

Instance Methods [hide private]
 
__init__(self, controller, examine_id, examine_name, examine_desc=None, commands=None)
Basic action constructor
source code
 
execute(self)
Display the text.
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, examine_id, examine_name, examine_desc=None, commands=None)
(Constructor)

source code 

Basic action constructor

Parameters:
  • controller (parpg.GameSceneController) - A reference to the GameSceneController.
  • examine_id (integer) - An object id
  • examine_name (string) - An object name
  • examine_desc (string) - A description of the object that will be displayed.
  • commands (Dictionary) - Special commands that are executed
  • view (class derived from parpg.ViewBase) - The view
Overrides: object.__init__

execute(self)

source code 

Display the text.

Overrides: Action.execute