I get this compiler error: `Monster' was not declared in this scope, in this code:
#ifndef ROOM_H
#define ROOM_H
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <vector>
#include <iostream>
#include "Monster.h"
using namespace std;
const int ROWS = 20;
const int COLS = 20;
class Room
{
private:
vector<int> indexes;
static bool doNotCreateFloor;
char map[ROWS][COLS];
vector<Monster*> monsters;
Room* rooms[6];
public:
Room (char floor, char extension, Room* room, char index);
int getRows () { return ROWS; }
int getCols () { return COLS; }
void setUpMap ();
void printMap ();
};
#endif
Tell me if you need monster.
Thanks for reading!