Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
536:1afe46247ab1 | 537:764510a6d2f9 |
---|---|
218 if not self._objectlist.has_key(obj.id): | 218 if not self._objectlist.has_key(obj.id): |
219 self._objectlist[obj.id] = obj | 219 self._objectlist[obj.id] = obj |
220 else: | 220 else: |
221 obj.destroy() | 221 obj.destroy() |
222 raise ObjectAlreadyInSceneError | 222 raise ObjectAlreadyInSceneError |
223 | |
224 def getObject(self, objid): | |
225 if self._objectlist.has_key(objid): | |
226 return self._objectlist[objid] | |
227 else: | |
228 return None | |
223 | 229 |
224 def removeObjectFromScene(self, obj): | 230 def removeObjectFromScene(self, obj): |
225 obj.destroy() | 231 obj.destroy() |
226 del self._objectlist[obj.id] | 232 del self._objectlist[obj.id] |
227 | 233 |