public Mob(int type, RandomCoordinates coordinates) { this.type = type; int[] position = coordinates.GetNext(); x = position[0]; y = position[1]; if (type == 0) { symbol = "$"; Map.arrayOfMoney.Add(position); } else { symbol = "@"; Map.arrayOfEnemy.Add(position); } }
public Game() { map = new Map(5, 5); coordinates = new RandomCoordinates(); }