comparison objects/action.py @ 86:a9cc5559ec2a

Move the identifier field from the FifeAgent component to the new General component. Added General Entity.
author KarstenBock@gmx.net
date Sat, 24 Sep 2011 15:48:24 +0200
parents 04af237dde10
children 824f3068ef2a
comparison
equal deleted inserted replaced
85:04af237dde10 86:a9cc5559ec2a
381 self.view = controller.view 381 self.view = controller.view
382 382
383 def execute(self): 383 def execute(self):
384 real_item = self.item.containable 384 real_item = self.item.containable
385 player = self.model.game_state.getObjectById("PlayerCharacter") 385 player = self.model.game_state.getObjectById("PlayerCharacter")
386 self.model.moveObject(self.item.fifeagent.identifier, None) 386 self.model.moveObject(self.item.general.identifier, None)
387 container.put_item(player.container, real_item) 387 container.put_item(player.container, real_item)
388 super(PickUpAction, self).execute() 388 super(PickUpAction, self).execute()
389 389
390 class DropItemAction(Action): 390 class DropItemAction(Action):
391 """Action for dropping an items on a map""" 391 """Action for dropping an items on a map"""