diff behaviours/npc.py @ 34:12071706020f

Fixed error in setting the initial state of the NPC behaviour
author KarstenBock@gmx.net
date Mon, 05 Sep 2011 14:14:42 +0200
parents 77dfe4a917b5
children bf506f739322
line wrap: on
line diff
--- a/behaviours/npc.py	Mon Sep 05 14:09:04 2011 +0200
+++ b/behaviours/npc.py	Mon Sep 05 14:14:42 2011 +0200
@@ -15,7 +15,8 @@
 
 from random import randrange
 
-from base import *
+import base
+from base import BaseBehaviour
 
 class NPCBehaviour(BaseBehaviour):
     """This is a basic NPC behaviour"""
@@ -23,7 +24,7 @@
         super(NPCBehaviour, self).__init__(layer)
         
         self.parent = parent
-        self.state = _AGENT_STATE_NONE
+        self.state = base._AGENT_STATE_NONE
         self.pc = None
         self.target_loc = None
         self.nextAction = None