private static void StartEnemy() { Cell startingCell = GetRandomEmptyCell(); var pathFromAggressiveEnemy = new PathToPlayer(_player, map); pathFromAggressiveEnemy.CreateFrom(startingCell.X, startingCell.Y); _aggressiveEnemy = new AggressiveEnemy(map, pathFromAggressiveEnemy) { X = startingCell.X, Y = startingCell.Y }; }
public AggressiveEnemy( IMap map, PathToPlayer path ) { _map = map; _path = path; }