Exemplo n.º 1
0
    public override IActorState toNextState(EActorAction action)
    {
        IActorState result = null;

        if (action == EActorAction.HERO_ONAIR_DOWN)
        {
            result = new HeroActorState_OnAir_Down(actor);
        }
        else if (action == EActorAction.HERO_ONAIR_UP)
        {
            result = new HeroActorState_OnAir_Up(actor);
        }
        else if (action == EActorAction.HERO_SHIN)
        {
            result = new HeroActorState_Shin(actor);
        }
        else if (action == EActorAction.HERO_CATCHPOINT)
        {
            result = new HeroActorState_CatchPoint(actor);
        }
        else if (action == EActorAction.HERO_ATTACK)
        {
            result = new HeroActorState_Attack(actor);
        }
        return(result);
    }
Exemplo n.º 2
0
 public override IActorState toNextState(EActorAction action)
 {
     IActorState result = null;
     if(action == EActorAction.HERO_IDLE){
         result = new HeroActorState_Idle(actor);
     }
     return result;
 }
Exemplo n.º 3
0
    public override IActorState toNextState(EActorAction action)
    {
        IActorState result = null;

        if (action == EActorAction.HERO_IDLE)
        {
            result = new HeroActorState_Idle(actor);
        }
        return(result);
    }
Exemplo n.º 4
0
 public override IActorState toNextState(EActorAction action)
 {
     IActorState result = null;
     if(action == EActorAction.HERO_ONAIR_UP){
         result = new HeroActorState_OnAir_Up(actor);
     }else if(action == EActorAction.HERO_ONAIR_DOWN){
         result = new HeroActorState_OnAir_Down(actor);
     }
     return result;
 }
Exemplo n.º 5
0
    public override IActorState toNextState(EActorAction action)
    {
        IActorState result = null;

        if (action == EActorAction.HERO_ONAIR_UP)
        {
            result = new HeroActorState_OnAir_Up(actor);
        }
        else if (action == EActorAction.HERO_ONAIR_DOWN)
        {
            result = new HeroActorState_OnAir_Down(actor);
        }
        return(result);
    }
Exemplo n.º 6
0
    public override IActorState toNextState(EActorAction action)
    {
        IActorState result = null;

        if (action == EActorAction.NPC_IDLE)
        {
            result = new NPCActorState_Idle(actor);
        }
        else if (action == EActorAction.NPC_WALK)
        {
            result = new NPCActorState_Walk(actor);
        }
        else if (action == EActorAction.NPC_DIE)
        {
            result = new NPCActorState_Die(actor);
        }
        return(result);
    }
Exemplo n.º 7
0
    public override IActorState toNextState(EActorAction action)
    {
        IActorState result = null;

        return(result);
    }
Exemplo n.º 8
0
 public virtual IActorState toNextState(EActorAction action)
 {
     return(null);
 }
Exemplo n.º 9
0
 public override IActorState toNextState(EActorAction action)
 {
     IActorState result = null;
     if(action == EActorAction.NPC_IDLE){
         result = new NPCActorState_Idle(actor);
     }
     else if(action == EActorAction.NPC_WALK){
         result = new NPCActorState_Walk(actor);
     }
     else if(action == EActorAction.NPC_DIE){
         result = new NPCActorState_Die(actor);
     }
     return result;
 }
Exemplo n.º 10
0
 public override IActorState toNextState(EActorAction action)
 {
     IActorState result = null;
     return result;
 }
Exemplo n.º 11
0
 public virtual IActorState toNextState(EActorAction action)
 {
     return null;
 }
Exemplo n.º 12
0
 public override IActorState toNextState(EActorAction action)
 {
     IActorState result = null;
     if(action == EActorAction.HERO_ONAIR_DOWN){
         result = new HeroActorState_OnAir_Down(actor);
     }
     else if(action == EActorAction.HERO_ONAIR_UP){
         result = new HeroActorState_OnAir_Up(actor);
     }else if(action == EActorAction.HERO_SHIN){
         result = new HeroActorState_Shin(actor);
     }else if(action == EActorAction.HERO_CATCHPOINT){
         result = new HeroActorState_CatchPoint(actor);
     }else if(action == EActorAction.HERO_ATTACK){
         result = new HeroActorState_Attack(actor);
     }
     return result;
 }
Exemplo n.º 13
0
 public IActorAction(EActorAction actiontype)
 {
     this.actiontype = actiontype;
 }
Exemplo n.º 14
0
 public IActorAction(EActorAction actiontype)
 {
     this.actiontype = actiontype;
 }