Mercurial > parpg-core
comparison 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 |
comparison
equal
deleted
inserted
replaced
72:9aebbf4e02f7 | 73:58661f5b2f6b |
---|---|
29 from common.utils import locateFiles | 29 from common.utils import locateFiles |
30 from common.utils import parseBool | 30 from common.utils import parseBool |
31 from parpg.dialogueparsers import YamlDialogueParser, DialogueFormatError | 31 from parpg.dialogueparsers import YamlDialogueParser, DialogueFormatError |
32 from parpg.entities import createEntity | 32 from parpg.entities import createEntity |
33 from parpg import behaviours | 33 from parpg import behaviours |
34 from parpg.components import fifeagent | |
34 | 35 |
35 try: | 36 try: |
36 import xml.etree.cElementTree as ElementTree | 37 import xml.etree.cElementTree as ElementTree |
37 except ImportError: | 38 except ImportError: |
38 import xml.etree.ElementTree as ElementTree | 39 import xml.etree.ElementTree as ElementTree |
675 obj.fifeagent.pos.Y = ref.Y | 676 obj.fifeagent.pos.Y = ref.Y |
676 obj.fifeagent.gfx = ref.gfx | 677 obj.fifeagent.gfx = ref.gfx |
677 | 678 |
678 if obj_type == "Character": | 679 if obj_type == "Character": |
679 obj.fifeagent.behaviour.parent = obj | 680 obj.fifeagent.behaviour.parent = obj |
681 fifeagent.setup_behaviour(obj.fifeagent) | |
682 obj.fifeagent.behaviour.speed = self.settings.parpg.PCSpeed | |
683 #Start the behaviour | |
684 obj.fifeagent.behaviour.idle() | |
680 # create the agent | 685 # create the agent |
681 #obj.setup() | 686 #obj.setup() |
682 #obj.behaviour.speed = self.settings.parpg.PCSpeed | 687 #obj.behaviour.speed = self.settings.parpg.PCSpeed |
683 # create the PlayerCharacter agent | 688 # create the PlayerCharacter agent |
684 #obj.start() | 689 #obj.start() |