def generate(self): DistributedCCharBase.DistributedCCharBase.generate(self, self.diffPath) self.neutralDoneEvent = self.taskName('minnie-neutral-done') self.neutral = CharStateDatas.CharNeutralState(self.neutralDoneEvent, self) self.walkDoneEvent = self.taskName('minnie-walk-done') if self.diffPath == None: self.walk = CharStateDatas.CharWalkState(self.walkDoneEvent, self) else: self.walk = CharStateDatas.CharWalkState(self.walkDoneEvent, self, self.diffPath) self.fsm.request('Neutral')
def generate(self): DistributedCCharBase.DistributedCCharBase.generate(self, self.diffPath) name = self.getName() self.neutralDoneEvent = self.taskName(name + '-neutral-done') self.neutral = CharStateDatas.CharNeutralState(self.neutralDoneEvent, self) self.walkDoneEvent = self.taskName(name + '-walk-done') if self.diffPath == None: self.walk = CharStateDatas.CharWalkState(self.walkDoneEvent, self) else: self.walk = CharStateDatas.CharWalkState(self.walkDoneEvent, self, self.diffPath) self.walkStartTrack = self.actorInterval('trans-back') self.neutralStartTrack = self.actorInterval('trans') self.fsm.request('Neutral')
def generate(self): DistributedCCharBase.DistributedCCharBase.generate(self, self.diffPath) self.neutralDoneEvent = self.taskName('pluto-neutral-done') self.neutral = CharStateDatas.CharNeutralState(self.neutralDoneEvent, self) self.walkDoneEvent = self.taskName('pluto-walk-done') if self.diffPath == None: self.walk = CharStateDatas.CharWalkState(self.walkDoneEvent, self) else: self.walk = CharStateDatas.CharWalkState(self.walkDoneEvent, self, self.diffPath) self.walkStartTrack = Sequence(self.actorInterval('stand'), Func(self.stand)) self.neutralStartTrack = Sequence(self.actorInterval('sit'), Func(self.sit)) self.fsm.request('Neutral')
def generate(self): DistributedCCharBase.DistributedCCharBase.generate(self) name = self.getName() self.neutralDoneEvent = self.taskName(name + '-neutral-done') self.neutral = CharStateDatas.CharNeutralState(self.neutralDoneEvent, self) self.walkDoneEvent = self.taskName(name + '-walk-done') self.walk = CharStateDatas.CharWalkState(self.walkDoneEvent, self) self.fsm.request('Neutral')