Changeset 623


Ignore:
Timestamp:
08/04/10 18:48:01 (9 years ago)
Author:
vaporice
Message:

Rolled back faulty commit

File:
1 edited

Legend:

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

    r622 r623  
    121121        self.pc = None 
    122122        self.target_loc = None 
    123         self.nextAction = None    
    124         self.break_wandering = False 
     123        self.nextAction = None 
     124         
    125125        # hard code this for now 
    126126        self.distRange = (2, 4) 
     
    160160            self.target_loc = self.getTargetLocation() 
    161161        self.idle() 
    162         
    163     def breakWandering(self): 
    164             self.break_wandering = True 
    165  
    166     def continueWandering(self): 
    167             self.break_wandering = False 
    168  
     162         
     163     
    169164    def idle(self): 
    170165        """Controls the NPC when it is idling. Different actions 
     
    176171        elif self.state == _AGENT_STATE_IDLE: 
    177172            self.target_loc = self.getTargetLocation() 
     173            self.state = _AGENT_STATE_WANDER 
    178174            self.agent.act('stand', self.agent.getFacingLocation()) 
    179             if not self.break_wandering: 
    180                  self.state = _AGENT_STATE_WANDER 
    181175        elif self.state == _AGENT_STATE_WANDER: 
    182176            self.parent.wander(self.target_loc) 
Note: See TracChangeset for help on using the changeset viewer.