Mercurial > parpg-core
comparison src/parpg/behaviours/player.py @ 82:7cb53edfb95f
Renamed BaseBehaviour to MovingAgentBehaviour
author | KarstenBock@gmx.net |
---|---|
date | Fri, 09 Sep 2011 15:05:23 +0200 |
parents | c3350fc9cd45 |
children | ecac92680bef |
comparison
equal
deleted
inserted
replaced
81:5508000aceaf | 82:7cb53edfb95f |
---|---|
11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
12 | 12 |
13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
14 # along with PARPG. If not, see <http://www.gnu.org/licenses/>. | 14 # along with PARPG. If not, see <http://www.gnu.org/licenses/>. |
15 | 15 |
16 import base | 16 import moving |
17 from base import BaseBehaviour | 17 from moving import MovingAgentBehaviour |
18 | 18 |
19 class PlayerBehaviour (BaseBehaviour): | 19 class PlayerBehaviour (MovingAgentBehaviour): |
20 def __init__(self, parent=None): | 20 def __init__(self, parent=None): |
21 super(PlayerBehaviour, self).__init__() | 21 super(PlayerBehaviour, self).__init__() |
22 self.parent = parent | 22 self.parent = parent |
23 self.idle_counter = 1 | 23 self.idle_counter = 1 |
24 self.speed = 0 | 24 self.speed = 0 |