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/action.py

    r287 r310  
    2424class ChangeMapAction(Action): 
    2525    """A change map scheduled""" 
    26     def __init__(self, engine, targetmap, targetpos): 
    27         """@type engine: Engine reference 
     26    def __init__(self, engine, targetmapname, targetmapfile , targetpos): 
     27        """Initiates a change of the position of the character 
     28           possibly flagging a new map to be loaded. 
     29           @type engine: Engine reference 
    2830           @param engine: A reference to the engine. 
    29            @type targetmap: String 
    30            @param targetmap: Target mapname. 
     31           @type targetmapname: String 
     32           @param targetmapname: Target map id  
     33           @type targetmapfile: String 
     34           @param targetmapfile: Target map filename 
    3135           @type targetpos: Tuple 
    3236           @param targetpos: (X, Y) coordinates on the target map. 
     
    3438        self.engine = engine 
    3539        self.targetpos = targetpos 
    36         self.targetmap = targetmap 
    37         
     40        self.targetmapname = targetmapname 
     41        self.targetmapfile = targetmapfile 
     42 
    3843    def execute(self): 
    3944        """Executes the mapchange.""" 
    40         self.engine.changeMap(self.targetmap, self.targetpos) 
     45        self.engine.changeMap(self.targetmapname, self.targetmapfile, self.targetpos) 
    4146        
    4247class OpenBoxAction(Action): 
Note: See TracChangeset for help on using the changeset viewer.