Ignore:
Timestamp:
10/09/09 20:03:08 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #66: Patch by saritor (& eliedebrauwer), implements saritors rework of teleporting, at this point it implements the within-a-map teleport successfully, but cross map teleport still has in issue which probably has to do with the setup of the PC. comment[s:trac, t:66]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/objects/composed.py

    r262 r310  
    3131        Destructable .__init__(self, **kwargs) 
    3232        self.blocking = True 
     33 
     34class Door(GameObject, Lockable, Scriptable, Trappable): 
     35    """Composite class that can be used to create doors on a map.""" 
     36    def __init__ (self, target_map_name = 'my-map', target_map = 'map/map.xml', target_pos = (0.0, 0.0), \ 
     37                        **kwargs): 
     38        GameObject   .__init__(self, **kwargs) 
     39        Lockable     .__init__(self, **kwargs) 
     40        Scriptable   .__init__(self, **kwargs) 
     41        Trappable    .__init__(self, **kwargs) 
     42        self.is_door = True 
     43        self.target_map_name = target_map_name 
     44        self.target_map = target_map 
     45        self.target_pos = target_pos 
     46        self.blocking = True 
Note: See TracChangeset for help on using the changeset viewer.