40 lines
653 B
C++
40 lines
653 B
C++
#ifndef _MAPELEMENT_H_
|
|
#define _MAPELEMENT_H_
|
|
#include <SDL/SDL.h>
|
|
#include <string>
|
|
|
|
#include "../Unuk/Globals.h"
|
|
#include "ApplySurface.h"
|
|
#include "TextureManager.h"
|
|
|
|
class MapElement {
|
|
public:
|
|
MapElement(void);
|
|
~MapElement(void);
|
|
|
|
static void SetTextureManager(TextureManager* arg);
|
|
|
|
virtual void SetTexture(SDL_Surface* arg);
|
|
virtual void Render(void);
|
|
virtual void Update(void);
|
|
|
|
void SetSolidity(bool arg);
|
|
bool GetSolidity(void);
|
|
|
|
void SetXY(int xArg, int yArg);
|
|
int GetX(void);
|
|
int GetY(void);
|
|
int GetWidth(void);
|
|
int GetHeight(void);
|
|
|
|
protected:
|
|
SDL_Surface* _texture;
|
|
|
|
bool _solid;
|
|
|
|
int x;
|
|
int y;
|
|
};
|
|
|
|
#endif
|