public EnemyGenerator(Room.Grid <Cell> room, Vector3 roomPosition, int roomNum, int totalRooms, Enemy[] enemyPrefabs)
 {
     this.room         = room;
     this.roomPosition = roomPosition;
     currCell          = room.getCellAtCoord(0, 0);
     this.roomNum      = roomNum;
     this.totalRooms   = totalRooms;
     this.enemyPrefabs = enemyPrefabs;
 }
Exemple #2
0
 /**
  * Checks what size bg elements can be generated at a given tile
  * @param x - coordinate for row in grid
  * @param y - coordinate for column in grid
  */
 private void checkTile(int x, int y)
 {
     currCell     = room.getCellAtCoord(x, y);
     canGenSingle = checkSingle(x, y);
     if (canGenSingle)
     {
         canGenDouble = checkDouble(x, y);
     }
     if (canGenDouble)
     {
         canGenBush = checkBush(x, y);
     }
 }
Exemple #3
0
 public bgElementGenerator(Room.Grid <Cell> room, Vector3 roomPosition)
 {
     this.room         = room;
     this.roomPosition = roomPosition;
     currCell          = room.getCellAtCoord(0, 0);
 }