public static CommandTimer getAttackCommand(float attackLength)
        {
            CommandTimer attack = new CommandTimer();

            attack.addCommand("UNIT-ATTACK", attackLength);
            return(attack);
        }
        public static void formTemplates()
        {
            templateTimers = new Dictionary<string, CommandTimer>();

            CommandTimer dodge = new CommandTimer();
            dodge.addCommand("UNIT-DODGE", 0.4f);

            CommandTimer attack = new CommandTimer();
            attack.addCommand("UNIT-ATTACK-WAITING", 0.5f);

            CommandTimer permDead = new CommandTimer();
            permDead.addCommand("UNIT-DEAD", float.MaxValue);

            templateTimers.Add("UNIT-DODGE", dodge);
            templateTimers.Add("UNIT-ATTACK", attack);
            templateTimers.Add("UNIT-DEAD", permDead);
        }
        public static void formTemplates()
        {
            templateTimers = new Dictionary <string, CommandTimer>();

            CommandTimer dodge = new CommandTimer();

            dodge.addCommand("UNIT-DODGE", 0.4f);

            CommandTimer attack = new CommandTimer();

            attack.addCommand("UNIT-ATTACK-WAITING", 0.5f);

            CommandTimer permDead = new CommandTimer();

            permDead.addCommand("UNIT-DEAD", float.MaxValue);

            templateTimers.Add("UNIT-DODGE", dodge);
            templateTimers.Add("UNIT-ATTACK", attack);
            templateTimers.Add("UNIT-DEAD", permDead);
        }
 public static CommandTimer getAttackCommand(float attackLength)
 {
     CommandTimer attack = new CommandTimer();
     attack.addCommand("UNIT-ATTACK", attackLength);
     return attack;
 }