Exemplo 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;
 }
Exemplo n.º 2
0
 public IActorAction(EFSMAction actiontype)
 {
     this.actiontype = actiontype;
 }
Exemplo n.º 3
0
 public void updataState(EFSMAction eAction)
 {
     IActorAction action = new IActorAction(eAction);
     updataState(action);
 }
Exemplo n.º 4
0
 public virtual IActorState toNextState(EFSMAction action)
 {
     return null;
 }
Exemplo 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;
 }
Exemplo n.º 6
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.HERO_RUN){
         result = new HeroActorState_Run(actor);
     }
     return result;
 }
Exemplo n.º 7
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     return result;
 }
Exemplo n.º 8
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.NPC_ATTACK){
         result = new NPCActorState_Attack(actor);
     }
     return result;
 }
Exemplo n.º 9
0
 public override IActorState toNextState(EFSMAction action)
 {
     IActorState result = null;
     if(action == EFSMAction.NPC_DIE){
         result = new NPCActorState_Dead(actor);
     }
     return result;
 }
Exemplo 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;
 }
Exemplo n.º 11
0
 public override IActorState toNextState(EFSMAction action)
 {
     return null;
 }