Mercurial > fife-parpg
diff demos/rpg/scripts/scene.py @ 537:764510a6d2f9
Added the move command.
Updated the settings-dist.xml file that changes the camera zoom to 1 and adds the script module to the log.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 31 May 2010 21:37:10 +0000 |
parents | 1afe46247ab1 |
children | 2e739ae9a8bc |
line wrap: on
line diff
--- a/demos/rpg/scripts/scene.py Mon May 31 20:25:46 2010 +0000 +++ b/demos/rpg/scripts/scene.py Mon May 31 21:37:10 2010 +0000 @@ -220,6 +220,12 @@ else: obj.destroy() raise ObjectAlreadyInSceneError + + def getObject(self, objid): + if self._objectlist.has_key(objid): + return self._objectlist[objid] + else: + return None def removeObjectFromScene(self, obj): obj.destroy()