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

Class ChangeMapAction

source code

object --+    
         |    
    Action --+
             |
            ChangeMapAction

A change map scheduled

Instance Methods [hide private]
 
__init__(self, controller, target_map_name, target_pos, commands=None)
Initiates a change of the position of the character possibly flagging a new map to be loaded.
source code
 
execute(self)
Executes the map change.
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, target_map_name, target_pos, commands=None)
(Constructor)

source code 

Initiates a change of the position of the character possibly flagging a new map to be loaded.

Parameters:
  • controller (scripts.GameSceneController) - A reference to the GameSceneController.
  • commands (Dictionary) - Special commands that are executed
  • view (class derived from scripts.ViewBase) - The view
  • target_map_name (String) - Target map id
  • target_pos (Tuple) - (X, Y) coordinates on the target map.
Returns:
None
Overrides: object.__init__

execute(self)

source code 

Executes the map change.

Overrides: Action.execute