Ignore:
Timestamp:
10/11/09 12:23:03 (10 years ago)
Author:
eliedebrauwer
Message:

Ticket #2: Patch by eliedebrauwer. Performed some cleanup on scripts/common and scripts/objects. comment[s:trac, t:66]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/common/eventlistenerbase.py

    r313 r315  
    1919 
    2020class EventListenerBase(fife.IKeyListener, fife.ICommandListener, fife.IMouseListener, fife.ConsoleExecuter): 
    21     def __init__(self, engine, regKeys=False, regCmd=False, regMouse=False, regConsole=False, regWidget=False): 
     21    def __init__(self, engine, reg_keys=False, reg_cmd=False, reg_mouse=False, reg_console=False, reg_widget=False): 
    2222        """Initialise the instance""" 
    2323        self.event_manager = engine.getEventManager() 
    2424 
    2525        fife.IKeyListener.__init__(self) 
    26         if regKeys: 
     26        if reg_keys: 
    2727            self.event_manager.addKeyListener(self) 
    2828        fife.ICommandListener.__init__(self) 
    29         if regCmd: 
     29        if reg_cmd: 
    3030            self.event_manager.addCommandListener(self) 
    3131        fife.IMouseListener.__init__(self) 
    32         if regMouse: 
     32        if reg_mouse: 
    3333            self.event_manager.addMouseListener(self) 
    3434        fife.ConsoleExecuter.__init__(self) 
    35         if regConsole: 
     35        if reg_console: 
    3636            engine.getGuiManager().getConsole().setConsoleExecuter(self) 
    3737 
Note: See TracChangeset for help on using the changeset viewer.