Mercurial > nagslang
changeset 477:290cb3a0927e
Extra helper
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 07 Sep 2013 16:47:01 +0200 |
parents | 7f33228ff62a |
children | 763e1b1233a3 |
files | nagslang/game_object.py |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nagslang/game_object.py Sat Sep 07 16:46:43 2013 +0200 +++ b/nagslang/game_object.py Sat Sep 07 16:47:01 2013 +0200 @@ -247,6 +247,15 @@ """Hints for the level editor""" return [("name", "string")] + @classmethod + def movable(cls): + # Are we movable + hints = cls.requires() + for x in hints: + if 'position' in x: + return True + return False + class FloorSwitch(GameObject): zorder = ZORDER_FLOOR