comparison src/parpg/entities/character.py @ 53:7c6e2e39b545

Move setup_behaviour method of the Character entity to a function in fifeagent.py
author KarstenBock@gmx.net
date Sun, 04 Sep 2011 16:25:23 +0200
parents 872e9ca29969
children 565ceb192cb9
comparison
equal deleted inserted replaced
52:872e9ca29969 53:7c6e2e39b545
28 28
29 self.fifeagent.identifier = identifier 29 self.fifeagent.identifier = identifier
30 self.fifeagent.layer = layer 30 self.fifeagent.layer = layer
31 self.fifeagent.behaviour = behaviour 31 self.fifeagent.behaviour = behaviour
32 self.fifeagent.gfx = gfx 32 self.fifeagent.gfx = gfx
33
34 def setup_behaviour(self):
35 """Attach the behaviour to the layer"""
36 if self.fifeagent.behaviour:
37 self.fifeagent.behaviour.attachToLayer(self.fifeagent.identifier)