public CommandTimer(CommandTimer timer)
 {
     commands = new List<String>(timer.commands);
     times = new List<float>(timer.times);
     currentEvent = 0;
     currentTime = 0;
 }
        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;
 }