As of now I have the below:
#ifndef RUNNER_H_
#define RUNNER_H_
#include "Maze.h"
#include <QtGui>
class Runner{
public:
Runner(QColor c);
int runnerSize;
void setLocation(int,int);
void setMaze(Maze);
virtual void redraw(QPainter * painter) = 0;
virtual ~Runner();
protected:
int rXcoor;
int rycoor;
Maze * rMazePanel;
QColor rColor;
private:
};
#endif /*RUNNER_H_*/
#ifndef MAZE_H_
#define MAZE_H_
#include "Player.h"
#include "Ghost.h"
#include <QtGui>
class Maze: public QWidget{
public:
Maze(Player*,Ghost[],QWidget * parent = 0);
int mWidth;
int mHeight;
int mWallDistance;
int mBrickGap;
int collideWall(int,int);
protected:
void paintEvent(QPaintEvent *event);
private:
int mBrick[25][25];
QColor mBackgroundColor;
QColor mWallColor;
Player * mPlayer;
Ghost * mGhost;
};
#endif /* MAZE_H_ */
however when I compile this it doesn't recognize Maze as a type of class and I have no idea why
I would appreciate any kind of help