Changeset 477:290cb3a0927e for nagslang


Ignore:
Timestamp:
Sep 7, 2013, 2:47:01 PM (7 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
rebase_source:
7413823f1241c54aec1c394c6e8ddfcddd2127ee
Message:

Extra helper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r474 r477  
    248248        return [("name", "string")]
    249249
     250    @classmethod
     251    def movable(cls):
     252        # Are we movable
     253        hints = cls.requires()
     254        for x in hints:
     255            if 'position' in x:
     256                return True
     257        return False
     258
    250259
    251260class FloorSwitch(GameObject):
Note: See TracChangeset for help on using the changeset viewer.