changeset 59:2915dbb60940

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 d5491eb9e3e4
children d153be6d36cc
files src/parpg/behaviours/npc.py src/parpg/behaviours/player.py
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/behaviours/npc.py	Mon Sep 05 14:09:04 2011 +0200
+++ b/src/parpg/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
--- a/src/parpg/behaviours/player.py	Mon Sep 05 14:09:04 2011 +0200
+++ b/src/parpg/behaviours/player.py	Mon Sep 05 14:14:42 2011 +0200
@@ -13,7 +13,8 @@
 #   You should have received a copy of the GNU General Public License
 #   along with PARPG.  If not, see <http://www.gnu.org/licenses/>.
 
-from base import *
+import base
+from base import BaseBehaviour
 
 class PlayerBehaviour (BaseBehaviour):
     def __init__(self, parent=None, layer=None):