Mercurial > parpg-source
diff gamescenecontroller.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 | e864b704dd59 |
children | 0411a4bcceee |
line wrap: on
line diff
--- a/gamescenecontroller.py Fri Sep 23 15:09:02 2011 +0200 +++ b/gamescenecontroller.py Sat Sep 24 15:48:24 2011 +0200 @@ -409,7 +409,7 @@ # TODO: work more on this when we get NPCData and HeroData straightened # out npc = self.model.game_state.getObjectById( - npc_info.fifeagent.identifier, + npc_info.general.identifier, self.model.game_state.current_map_name ) npc_pos = npc.fifeagent.behaviour.getLocation().getLayerCoordinates() @@ -430,7 +430,7 @@ self.model.game_state.current_map_name) obj_pos = obj.fifeagent.behaviour.getLocation().getLayerCoordinates() player = self.model.game_state.getObjectById("PlayerCharacter") - is_player = obj.fifeagent.identifier == player.fifeagent.identifier + is_player = obj.general.identifier == player.general.identifier #TODO: Check all actions to be compatible with the grease components