Unsure how to fix this error
Code:
#define tile ( bool hardness, char symbol, int color, int visibility )
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <windows.h>
using namespace std;
class DrawMap
{
public:
void Set_Map( int *tile, void *MapBuffer[1][1], int Xcoord, int Ycoord, int Xmax, int Ymax );
void SetMapSize( int Ymax, int Xmax );
DrawMap();
void Draw_Map( int *tile, int *MapBuffer[1][1], int Xcoord, int Ycoord, int Xmax, int Ymax );
~DrawMap();
int ClearAll( int *tile );
void *MapBuffer[1][1];
int Ycoord, Xcoord, Ymax, Xmax;
};
DrawMap::DrawMap(){}
DrawMap::~DrawMap(){}
void DrawMap::Set_Map( int *tile, void *MapBuffer[1][1], int Xcoord, int Ycoord, int Xmax, int Ymax ) {
Xcoord = 0;
Ycoord = 0;
while( Ycoord <= Ymax ) {
Xcoord = 0;
while( Xcoord <= Xmax ) {
MapBuffer[Xcoord][Ycoord] = new tile( false, 50, 9, 5 );
// ^^ This line gives me the errors:
// expected ')' before "hardness"
// expected ';' before "hardness"
Xcoord++;
if( Xcoord <= 80 ) {
Ycoord++;
}
}
}
}
I have only begun writing the code for this game, so that is why it is so incomplete.
Can anyone tell me how to fix this problem?
Also, I'm new here, so feel free to burn me on anything I may have done wrong.