Esempio n. 1
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.HERO_IDLE){
         result = new HeroActorState_Idle(actor);
     }else if(action == EFSMAction.HERO_DIE){
         result = new HeroActorState_Dead(actor);
     }else if(action == EFSMAction.HERO_RUN){
         result = new HeroActorState_Run(actor);
     }
     return result;
 }
Esempio n. 2
0
 public IActorAction(EFSMAction actiontype)
 {
     this.actiontype = actiontype;
 }
Esempio n. 3
0
 public void updataState(EFSMAction eAction)
 {
     IActorAction action = new IActorAction(eAction);
     updataState(action);
 }
Esempio n. 4
0
 public virtual IActorState toNextState(EFSMAction action)
 {
     return null;
 }
Esempio n. 5
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.HERO_IDLE){
         result = new HeroActorState_Idle(actor);
     }else if(action == EFSMAction.HERO_ONAIR_UP){
         result = new HeroActorState_OnAir_Up(actor);
     }else if(action == EFSMAction.HERO_ONAIR_DOWN){
         result = new HeroActorState_OnAir_Down(actor);
     }
     return result;
 }
Esempio n. 6
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.HERO_RUN){
         result = new HeroActorState_Run(actor);
     }
     return result;
 }
Esempio n. 7
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     return result;
 }
Esempio n. 8
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.NPC_ATTACK){
         result = new NPCActorState_Attack(actor);
     }
     return result;
 }
Esempio n. 9
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.NPC_DIE){
         result = new NPCActorState_Dead(actor);
     }
     return result;
 }
Esempio n. 10
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.HERO_IDLE){
         result = new HeroActorState_Idle(actor);
     }else if(action == EFSMAction.HERO_ATTACK){
         result = new HeroActorState_Attack(actor);
     }
     return result;
 }
Esempio n. 11
0
 public override IActorState toNextState(EFSMAction action)
 {
     return null;
 }