comparison demos/rio_de_hola/scripts/agents/hero.py @ 496:987307d12235

Added the fife_settings.py extension. This provides a small utility class for loading and saving settings along with a dialog box for setting screen resolution and other things. Updated the shooter demo and rio_de_hola to use the new settings extension.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 12 May 2010 16:09:46 +0000
parents 70697641fca3
children 3dff106b945b
comparison
equal deleted inserted replaced
495:ae9f5383f5b1 496:987307d12235
21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 # #################################################################### 22 # ####################################################################
23 23
24 import random 24 import random
25 from agent import Agent 25 from agent import Agent
26 from settings import Setting 26 from fife.extensions.fife_settings import Setting
27 27
28 TDS = Setting() 28 TDS = Setting(app_name="rio_de_hola")
29 29
30 _STATE_NONE, _STATE_IDLE, _STATE_RUN, _STATE_KICK, _STATE_TALK = xrange(5) 30 _STATE_NONE, _STATE_IDLE, _STATE_RUN, _STATE_KICK, _STATE_TALK = xrange(5)
31 31
32 class Hero(Agent): 32 class Hero(Agent):
33 def __init__(self, model, agentName, layer, uniqInMap=True): 33 def __init__(self, model, agentName, layer, uniqInMap=True):