huh o.O? That's what I'm having in the platform.h file...
Code:
#ifndef PLATFORM_H
#define PLATFORM_H
#include "hge.h"
#include "hgerect.h"
#include "character.h"
//platform.h
class platform {
private:
hgeQuad platQuad;
public:
platform();
virtual ~platform();
float z;
float x, y;
hgeRect rect;
void updateQVert();
void updateRect();
void quadRender(HGE* hge);
void quadTexture( HTEXTURE tex, DWORD col, int blend);
void move(float x2, float y2);
};
#endif
Code:
#ifndef CHARACTER_H
#define CHARACTER_H
//character.h
#include "hge.h"
#include "hgerect.h"
#include "console.h"
#include "platform.h"
class character {
protected:
void renderQuad(HGE* hge, hgeQuad* quad);
void flipLeft(hgeQuad* quad);
void flipRight(hgeQuad* quad);
void updateQVert(hgeQuad* quad);
public:
character();
virtual ~character();
enum direction {LEFT, RIGHT, DOWN, UP};
direction dir;
virtual void pullDown();
virtual void stop(HGE* hge, character& c, platform& plat);
float speed;
float x, y;
float z;
float gravityPull;
hgeRect charRect;
};
#endif
That might help?