diff behaviours/npc.py @ 55:8b1ad2d342d8

Renamed BaseBehaviour to MovingAgentBehaviour
author KarstenBock@gmx.net
date Fri, 09 Sep 2011 15:05:23 +0200
parents 1bdadb768bcf
children 3f6299f975fe
line wrap: on
line diff
--- a/behaviours/npc.py	Thu Sep 08 18:56:10 2011 +0200
+++ b/behaviours/npc.py	Fri Sep 09 15:05:23 2011 +0200
@@ -17,10 +17,10 @@
 
 from fife import fife
 
-import base
-from base import BaseBehaviour
+import moving
+from moving import MovingAgentBehaviour
 
-class NPCBehaviour(BaseBehaviour):
+class NPCBehaviour(MovingAgentBehaviour):
     """This is a basic NPC behaviour"""
     def __init__(self, parent=None):
         super(NPCBehaviour, self).__init__()
@@ -72,7 +72,7 @@
            @return: None"""
         if self.state == base._AGENT_STATE_WANDER:
             self.target_loc = self.getTargetLocation()
-        BaseBehaviour.onInstanceActionFinished(self, instance, action)
+        MovingAgentBehaviour.onInstanceActionFinished(self, instance, action)
         
     
     def idle(self):