Mercurial > fife-parpg
diff demos/rpg/scripts/actors/questgiver.py @ 543:cb7ec12214a9
Items can now be serialized/deserialized to/from disk. I haven't finished actors yet. This allows for persistent states when you enter/leave maps.
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 02 Jun 2010 21:43:03 +0000 |
parents | 2e739ae9a8bc |
children | 8fee2d2286e9 |
line wrap: on
line diff
--- a/demos/rpg/scripts/actors/questgiver.py Tue Jun 01 21:38:14 2010 +0000 +++ b/demos/rpg/scripts/actors/questgiver.py Wed Jun 02 21:43:03 2010 +0000 @@ -32,8 +32,9 @@ from scripts.actors.baseactor import Actor class QuestGiver(Actor): - def __init__(self, gamecontroller, instancename, instanceid=None, createInstance=False): - super(QuestGiver, self).__init__(gamecontroller, GameObjectTypes["QUESTGIVER"], instancename, instanceid, createInstance) + def __init__(self, gamecontroller, layer, typename, instancename, instanceid=None, createInstance=False): + super(QuestGiver, self).__init__(gamecontroller, layer, typename, instancename, instanceid, createInstance) + self._type = GameObjectTypes["QUESTGIVER"] self._quests = []