Changeset 166


Ignore:
Timestamp:
06/28/09 22:58:50 (10 years ago)
Author:
tie_parpg
Message:

added 'blocking' property to the GameObject?; added a separate module for the composed classes, as well as a module that would supposedly hold all containers like crates, barrels, etc.

Location:
trunk/PARPG/scripts/objects
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/objects/base.py

    r165 r166  
    5555    """ 
    5656    def __init__ (self, ID, gfx = {}, coords = (0.0,0.0), mapref = None,  
    57                   name="Generic object", text="Item description", **kwargs): 
     57                  blocking=True, name="Generic object", text="Item description", 
     58                  **kwargs): 
    5859        """Set the basic values that are shared by all game objects. 
    5960        @type ID: String 
     
    6566        @type mapref: ??? 
    6667        @param mapref: Reference to the map where the object is located 
     68        @type blocking: Boolean 
     69        @param blocking: Whether the object blocks character movement 
    6770        @type name: String 
    6871        @param name: The display name of this object (e.g. 'Dirty crate') 
     
    7477        self.X, self.Y = float(coords[0]), float (coords[1]) 
    7578        self.mapref = mapref 
     79        self.blocking = True 
    7680        self.name = name 
    7781        self.text = text 
Note: See TracChangeset for help on using the changeset viewer.