diff src/parpg/behaviours/npc.py @ 82:7cb53edfb95f

Renamed BaseBehaviour to MovingAgentBehaviour
author KarstenBock@gmx.net
date Fri, 09 Sep 2011 15:05:23 +0200
parents c3350fc9cd45
children 9f8faf6e974d
line wrap: on
line diff
--- a/src/parpg/behaviours/npc.py	Thu Sep 08 18:56:10 2011 +0200
+++ b/src/parpg/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):