public void AddCast() { var textMap = "@@@@@\r\n@...@\r\n@...@\r\n@...@\r\n@@@@@"; var map = new Map(textMap, 10); CastGenerator.SpawnCastTimer = new TickTimer(2); for (var i = 0; i < 2; i++) { var dict = new Dictionary <Point, Cast>(); CastGenerator.TryAddCast(map, dict); Assert.AreEqual(i, dict.Count); } }
public void Tick() { if (Player.HealthPoints > 0) { ActPlayer(); ActEnemies(); CastGenerator.TryAddCast(Map, DroppedCasts); } else { IsLost = true; } }