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); }
private static void test() { Player asd = new Player(); asd.initCasting(); Console.ReadLine(); }