comparison src/parpg/gamestate.py @ 69:ad75fa042b99

Changes to make PARPG "runable" with grease. (With the correct modified assets)
author KarstenBock@gmx.net
date Tue, 06 Sep 2011 15:22:51 +0200
parents 1fd2201f5c36
children cd12294d1981
comparison
equal deleted inserted replaced
68:d7286cba42df 69:ad75fa042b99
34 If the object is in a container this has to be None 34 If the object is in a container this has to be None
35 @param object: object to be added 35 @param object: object to be added
36 @type object: GameObject 36 @type object: GameObject
37 @type map_id: str or None 37 @type map_id: str or None
38 """ 38 """
39 object_id = game_object.ID 39 object_id = game_object.fifeagent.identifier
40 if not self.object_ids.has_key(object_id): 40 if not self.object_ids.has_key(object_id):
41 if map_id: 41 if map_id:
42 self.objects[map_id][object_id] = game_object 42 self.objects[map_id][object_id] = game_object
43 self.object_ids[object_id] = map_id 43 self.object_ids[object_id] = map_id
44 44