2020-10-23 16:17:48 +02:00
|
|
|
from ..interfaces import FightingEntity
|
2020-10-16 17:58:00 +02:00
|
|
|
|
2020-11-06 15:33:26 +01:00
|
|
|
|
2020-10-16 17:58:00 +02:00
|
|
|
class Player(FightingEntity):
|
|
|
|
maxhealth = 20
|
2020-10-23 15:15:37 +02:00
|
|
|
strength = 5
|
2020-11-06 17:48:47 +01:00
|
|
|
|
|
|
|
def move_up(self) -> None:
|
|
|
|
self.y -= 1
|
|
|
|
|
|
|
|
def move_down(self) -> None:
|
|
|
|
self.y += 1
|
|
|
|
|
|
|
|
def move_left(self) -> None:
|
|
|
|
self.x -= 1
|
|
|
|
|
|
|
|
def move_right(self) -> None:
|
|
|
|
self.x += 1
|