Mercurial > parpg-source
changeset 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 | 895be696ae86 |
files | behaviours/npc.py behaviours/player.py |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
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
--- a/behaviours/player.py Mon Sep 05 14:09:04 2011 +0200 +++ b/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):