Ignore:
Timestamp:
06/16/10 19:18:01 (9 years ago)
Author:
beliar
Message:
  • Change to make PARPG run with the latest FIFE revision (3373)
    • Removed argument to addCamera that FIFE no longer needs
  • Changed settings code to use the FIFE extension fife_settings
  • Additions to pylintrc
Location:
trunk/game/scripts/objects
Files:
2 edited

Legend:

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

    r533 r541  
    2626__all__ = ["PlayerCharacter", "NonPlayerCharacter",] 
    2727 
    28 TDS = Setting() 
     28TDS = Setting(app_name="PARPG", 
     29              settings_file="./settings.xml",  
     30              settings_gui_xml="") 
    2931_AGENT_STATE_NONE, _AGENT_STATE_IDLE, _AGENT_STATE_APPROACH, _AGENT_STATE_RUN, _AGENT_STATE_WANDER, _AGENT_STATE_TALK = xrange(6) 
    3032 
     
    4446        self.state = _AGENT_STATE_NONE 
    4547        # TODO: rework/improve 
    46         self.speed = float(TDS.readSetting("PCSpeed"))-1 
     48        self.speed = TDS.get("PARPG", "PCSpeed")-1 
    4749         
    4850    def getX(self): 
     
    6769        self.idle_counter = 1 
    6870        # TODO: rework/improve 
    69         self.speed = float(TDS.readSetting("PCSpeed")) 
     71        self.speed = TDS.get("PARPG", "PCSpeed") 
    7072        self.nextAction = None 
    7173        self.agent = None 
  • trunk/game/scripts/objects/base.py

    r530 r541  
    5353            
    5454from fife import fife 
    55 from settings import Setting 
     55from fife.extensions.fife_settings import Setting 
    5656from random import randrange 
    5757from scripts.gui.popups import ExaminePopup, ContainerGUI 
Note: See TracChangeset for help on using the changeset viewer.