X-Git-Url: https://plomlompom.com/repos/?p=plomrogue2-experiments;a=blobdiff_plain;f=new%2Fplomrogue%2Fthings.py;h=386dbc4522071e059cb80b73647c80d289053ee3;hp=2decc6709f747113e888edc9327f406c8e43739c;hb=d33b918833cc762029abf5ca0b6930e16f91e8da;hpb=faf90001efa004054b41df5e2638b6c7c4c1fd98 diff --git a/new/plomrogue/things.py b/new/plomrogue/things.py index 2decc67..386dbc4 100644 --- a/new/plomrogue/things.py +++ b/new/plomrogue/things.py @@ -13,6 +13,20 @@ class ThingBase: class Thing(ThingBase): + blocking = False + + def proceed(self): + pass + + + +class ThingItem(Thing): + type_ = 'item' + + + +class ThingAnimate(Thing): + blocking = True def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -129,10 +143,10 @@ class Thing(ThingBase): -class ThingHuman(Thing): +class ThingHuman(ThingAnimate): type_ = 'human' -class ThingMonster(Thing): +class ThingMonster(ThingAnimate): type_ = 'monster'