Mercurial > parpg-source
comparison gamestate.py @ 44:98f26f7636d8
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 | 7a89ea5404b1 |
children | d4f213b99d41 |
comparison
equal
deleted
inserted
replaced
43:8f9e9f47c363 | 44:98f26f7636d8 |
---|---|
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 |