Changeset 327 for trunk/game


Ignore:
Timestamp:
10/15/09 18:51:55 (10 years ago)
Author:
eliedebrauwer
Message:

Patch by eliedebrauwer, forgot to remove some debug in ticket 117 fix, docstring formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/world.py

    r326 r327  
    3636# in order to not replicate data, some of our data model will naturally 
    3737# reside on this side of the fence (PC xpos and ypos, for example). 
    38 # we should aim to never replicate any data as this leads to maintainance 
     38# we should aim to never replicate any data as this leads to maintenance 
    3939# issues (and just looks plain bad). 
    4040# however, any logic needed to resolve this should sit in engine.py 
     
    8888 
    8989    def saveGame(self, *args, **kwargs): 
    90         """Saves the game state 
    91            @return: None""" 
    92         print args 
    93         print kwargs  
     90        """Saves the game state, delegates call to engine.Engine 
     91           @return: None""" 
    9492        self.data.save(*args, **kwargs) 
    9593 
    9694    def loadGame(self, *args, **kwargs): 
    97         """Loads the game state 
    98            @return: None""" 
    99         print self.data 
     95        """Loads the game state, delegates call to engine.Engine 
     96           @return: None""" 
    10097        self.data.load(*args, **kwargs) 
    10198         
     
    136133        obj.say(str(text), 1000) 
    137134 
    138     # all key / mouse event handling routines go here 
    139135    def keyPressed(self, evt): 
    140136        """Whenever a key is pressed, fife calls this routine. 
     
    224220           location on the same map. the setting of position may want 
    225221           to be created as its own method down the road. 
    226             
    227222           @type position: String Tuple 
    228            @param position: X,Y coordinates passed from enigine.changeMap 
     223           @param position: X,Y coordinates passed from engine.changeMap 
    229224           @return: fife.Location 
    230225        """ 
     
    259254 
    260255    def getCoords(self, click): 
    261         """Get the map location x, y cords from the screen co-ords 
     256        """Get the map location x, y coordinates from the screen coordinates 
    262257           @type click: fife.ScreenPoint 
    263            @param click: Screen co-ords 
     258           @param click: Screen coordinates 
    264259           @rtype: fife.Location 
    265            @return: The map co-ords""" 
     260           @return: The map coordinates""" 
    266261        coord = self.active_map.cameras["main"].toMapCoordinates(click, False) 
    267262        coord.z = 0 
Note: See TracChangeset for help on using the changeset viewer.