Ignore:
Timestamp:
05/13/09 09:54:25 (11 years ago)
Author:
maximinus_parpg
Message:

All code now PEP-8 standard, with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/agents/hero.py

    r62 r67  
    77class Hero(Agent): 
    88    """This is the class we use for the PC character""" 
    9     def __init__(self,agentName,layer): 
    10         super(Hero, self).__init__(agentName,layer) 
    11         self.state=_STATE_NONE 
    12         self.idlecounter=1 
    13         self.speed=float(TDS.readSetting("PCSpeed")) 
     9    def __init__(self, agentName, layer): 
     10        super(Hero, self).__init__(agentName, layer) 
     11        self.state = _STATE_NONE 
     12        self.idlecounter = 1 
     13        self.speed = float(TDS.readSetting("PCSpeed")) 
    1414 
    1515    def onInstanceActionFinished(self, instance, action): 
    1616        self.idle() 
    17         if action.getId() != 'stand': 
     17        if(action.getId() != 'stand'): 
    1818            self.idlecounter = 1 
    1919        else: 
     
    2929    def run(self, location): 
    3030        self.state = _STATE_RUN 
    31         self.agent.move('run',location,self.speed) 
     31        self.agent.move('run', location, self.speed) 
    3232 
Note: See TracChangeset for help on using the changeset viewer.