Exemple #1
0
 public Skill(Player player, String name, int coolDown, int castTime, int priority)
 {
     this.player = player;
     this.name = name;
     this.castTime = castTime;
     this.coolDown = coolDown;
     this.priority = priority;
     this.cd = new Timer(this.coolDown + this.castTime);
     this.cd.Elapsed += new ElapsedEventHandler(resetCD);
     this.cd.AutoReset = false;
     player.enqueue(this);
 }
Exemple #2
0
 private static void test()
 {
     Player asd = new Player();
     asd.initCasting();
     Console.ReadLine();
 }