Mercurial > parpg-source
comparison behaviours/npc.py @ 56:3f6299f975fe
Added BaseBehaviour. Moved methods from MovingAgentBehaviour to BaseBehaviour.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 09 Sep 2011 15:18:17 +0200 |
parents | 8b1ad2d342d8 |
children | 57f1cff9a75d |
comparison
equal
deleted
inserted
replaced
55:8b1ad2d342d8 | 56:3f6299f975fe |
---|---|
15 | 15 |
16 from random import randrange | 16 from random import randrange |
17 | 17 |
18 from fife import fife | 18 from fife import fife |
19 | 19 |
20 import moving | 20 import base |
21 from moving import MovingAgentBehaviour | 21 from moving import MovingAgentBehaviour |
22 | 22 |
23 class NPCBehaviour(MovingAgentBehaviour): | 23 class NPCBehaviour(MovingAgentBehaviour): |
24 """This is a basic NPC behaviour""" | 24 """This is a basic NPC behaviour""" |
25 def __init__(self, parent=None): | 25 def __init__(self, parent=None): |