it's a bit different than mine.
Here's my characters.h file:
#include "systemhelpers.h"
////////////////////////
// CHARACTER CLASS /////
////////////////////////
class character
{
public:
float m_iX,m_iY;
float m_fSpeed;
int m_iDir;
int m_iSpriteID;
int m_iImageID;
char * m_szImageFile;
int m_iTimer;
void Animate();
bool POC(int iDir);
void Up(){m_iY-=m_fSpeed;}
void Down(){m_iY+=m_fSpeed;}
void Left(){m_iX-=m_fSpeed;}
void Right(){m_iX+=m_fSpeed;}
void SetDir(int iDir){m_iDir=iDir;}
};
////////////////////////
// PLAYER CLASS ////////
////////////////////////
class player : public character
{
public:
player(int iSprite,int iImage,char* szFile);
bool PlayerLoadSprite();
void Movement();
bool onTile(int iMin, int iMax);
};
////////////////////////
// NPC CLASS ///////////
////////////////////////
class npc : public character
{
public:
int m_iType;
int m_iAI;
npc();
npc(int iType, int iAI);
void NPCLoadSprite();
void AI();
void RLWalkAI();
};
~you can call me lantz~