Changeset 477:290cb3a0927e


Ignore:
Timestamp:
09/07/13 14:47:01 (8 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
37343133383233663132343163353461656331633339346336653864646663646464323132376565
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.