X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=new%2Fplomrogue%2Fthings.py;h=2decc6709f747113e888edc9327f406c8e43739c;hb=faf90001efa004054b41df5e2638b6c7c4c1fd98;hp=a80e9e40913e9eac6e06221577cfe5815477a1a5;hpb=ba338f6ed46da5c34fbb7a3e9dac28338a0406a3;p=plomrogue2-experiments
diff --git a/new/plomrogue/things.py b/new/plomrogue/things.py
index a80e9e4..2decc67 100644
--- a/new/plomrogue/things.py
+++ b/new/plomrogue/things.py
@@ -3,11 +3,11 @@ from plomrogue.errors import GameError
class ThingBase:
+ type_ = '?'
- def __init__(self, world, id_, type_='?', position=[0,0]):
+ def __init__(self, world, id_, position=[0,0]):
self.world = world
self.id_ = id_
- self.type_ = type_
self.position = position
@@ -126,3 +126,13 @@ class Thing(ThingBase):
if stencil[thing.position] == '.':
visible_things += [thing]
return visible_things
+
+
+
+class ThingHuman(Thing):
+ type_ = 'human'
+
+
+
+class ThingMonster(Thing):
+ type_ = 'monster'