Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 public Game()
 {
     map         = new Map(5, 5);
     coordinates = new RandomCoordinates();
 }