Beispiel #1
0
 private void ActionDefence(TypeActionTeng typeAction)
 {
     if (typeAction == TypeActionTeng.Defence)
     {
         actions.PlayerDefDamage();
     }
 }
Beispiel #2
0
 private void ActionHeal(TypeActionTeng typeAction)
 {
     if (typeAction == TypeActionTeng.Heal)
     {
         actions.PlayerHeal(50);
     }
 }
Beispiel #3
0
 private void ActionAttack(TypeActionTeng typeAction)
 {
     if (typeAction == TypeActionTeng.Attack)
     {
         actions.AttackAble(true);
         actions.AttackAble(false);
     }
 }
Beispiel #4
0
        public void execute(TypeActionTeng typeAction)
        {
            switch (typeAction)
            {
            case TypeActionTeng.Attack:
                ActionAttack(typeAction);
                break;

            case TypeActionTeng.Defence:
                ActionHeal(typeAction);
                break;

            case TypeActionTeng.Heal:
                ActionDefence(typeAction);
                break;
            }
        }
Beispiel #5
0
 public void ActionAttack_(TypeActionTeng type)
 {
 }