Ejemplo n.º 1
0
 //For check only
 public Command(Action action)
 {
     if (action != Action.Check)
     {
         return;
     }
     this.Action = action;
 }
Ejemplo n.º 2
0
 //For attack only
 public Command(Action action, Strength str)
 {
     if (action != Action.Attack)
     {
         return;
     }
     this.Action = action;
     this.Power  = str;
 }
Ejemplo n.º 3
0
        //For def and rest only
        public Command(Action action, int time)
        {
            switch (action)
            {
            case Action.Attack:
                return;

            case Action.Check:
                return;
            }
            this.Action = action;
            this.Time   = time;
        }