Mercurial > parpg-source
comparison behaviours/player.py @ 55:8b1ad2d342d8
Renamed BaseBehaviour to MovingAgentBehaviour
author | KarstenBock@gmx.net |
---|---|
date | Fri, 09 Sep 2011 15:05:23 +0200 |
parents | 1bdadb768bcf |
children | 57f1cff9a75d |
comparison
equal
deleted
inserted
replaced
54:de09adb7a736 | 55:8b1ad2d342d8 |
---|---|
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 |