Changeset 416 for trunk


Ignore:
Timestamp:
11/30/09 20:03:37 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #187: Patch by eliedebrauwer. Added shortcuts so from the console self.world, self.engine and self.game_state point to, well world, engine and game_state. fixes[s:trac, t:187]

Location:
trunk/game
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/run.py

    r401 r416  
    4444    def __init__(self, engine, world, model): 
    4545        """Initialise the instance. 
    46            @type engine: engine.Engine 
     46           @type engine: fife.Engine 
    4747           @param engine: ??? 
    4848           @type world: world.World 
  • trunk/game/scripts/console.py

    r396 r416  
    4343            {"cmd":"save"  ,"callback":self.handleSave  ,"help": save_help}, 
    4444        ] 
    45         self.app_listener=app_listener 
     45        self.app_listener = app_listener 
     46        self.world = self.app_listener.world  
     47        self.engine = self.app_listener.model 
     48        self.game_state = self.app_listener.world.data.game_state 
    4649 
    4750    def handleQuit(self, command): 
Note: See TracChangeset for help on using the changeset viewer.