Hi, I'm having a problem with the inclusion of board.h in the first code space (player.h) I've included the file but the terminal gives an error: "unknown type name Board"
#ifndef PLAYER_H
#define PLAYER_H
#define SPEED 1
#include <ncurses.h>
#include "board.h"
class Player{
public:
Player(int y, int x, char c);
void mvup();
void mvdown();
void mvleft();
void mvright();
int getmv();
void display();
protected:
Board board;
int xLoc, yLoc, xM, yM;
char character;
};
#endif
#ifndef BOARD_H
#define BOARD_H
#include <ncurses.h>
#include "game.h"
class Board{
public:
Board();
Board(int height, int width);
void construct(int height, int width);
void initialized();
void addBorder();
void clear();
void refresh();
void addAt(int y, int x, chtype ch);
chtype getInput();
protected:
WINDOW * playwin;
};
#endif