Mercurial > parpg-core
diff src/parpg/gamemodel.py @ 73:58661f5b2f6b
Removed layer as attribute of BaseBehaviour and added it as a parameter to the attachToLayer method.
author | KarstenBock@gmx.net |
---|---|
date | Wed, 07 Sep 2011 13:54:02 +0200 |
parents | ad75fa042b99 |
children | 62cff91a19cb |
line wrap: on
line diff
--- a/src/parpg/gamemodel.py Wed Sep 07 13:24:02 2011 +0200 +++ b/src/parpg/gamemodel.py Wed Sep 07 13:54:02 2011 +0200 @@ -31,6 +31,7 @@ from parpg.dialogueparsers import YamlDialogueParser, DialogueFormatError from parpg.entities import createEntity from parpg import behaviours +from parpg.components import fifeagent try: import xml.etree.cElementTree as ElementTree @@ -677,6 +678,10 @@ if obj_type == "Character": obj.fifeagent.behaviour.parent = obj + fifeagent.setup_behaviour(obj.fifeagent) + obj.fifeagent.behaviour.speed = self.settings.parpg.PCSpeed + #Start the behaviour + obj.fifeagent.behaviour.idle() # create the agent #obj.setup() #obj.behaviour.speed = self.settings.parpg.PCSpeed