I made this class for a game i'm making:
Code:
#ifndef _ENEMY_H_
#define _ENEMY_H_
class ENEMY{
public:
ENEMY();
int currow(){return row;};
int curcol(){return col;};
void enemymove(); //dumb enemy
void enemymove2(int playerrow,int playercol); //smart enemy
int enemytype;
void DebugPrint();
private:
void Move(int rol, int col);
void check();
int row,col;
int oldrow,oldcol;
};
#endif
If I do something like this:
Code:
#include "enemy.h"
int main(){
ENEMY enemies; //error on this line
//other stuff
}
I get an ENEMY is not declared when I try to declare a variable of type ENEMY. whats wrong? I used other classes simular to this one, and they worked fine. I have no idea what is wrong.