* added skydome and some test fog * added some debug output in the window * code cleanups
35 lines
855 B
C++
35 lines
855 B
C++
#ifndef MAPMGR_H
|
|
#define MAPMGR_H
|
|
|
|
class MapTileStorage;
|
|
class MapTile;
|
|
|
|
class MapMgr
|
|
{
|
|
public:
|
|
MapMgr();
|
|
~MapMgr();
|
|
void Update(float,float,uint32);
|
|
void Flush(void);
|
|
float GetZ(float,float);
|
|
uint32 GetGridCoord(float f);
|
|
MapTile *GetTile(uint32 xg, uint32 yg, bool forceLoad = false);
|
|
MapTile *GetCurrentTile(void);
|
|
MapTile *GetNearTile(int32, int32);
|
|
inline bool Loaded(void) { return _mapsLoaded; }
|
|
uint32 GetLoadedMapsCount(void);
|
|
inline uint32 GetGridX(void) { return _gridx; }
|
|
inline uint32 GetGridY(void) { return _gridy; }
|
|
|
|
|
|
private:
|
|
MapTileStorage *_tiles;
|
|
void _LoadTile(uint32,uint32,uint32);
|
|
void _LoadNearTiles(uint32,uint32,uint32);
|
|
void _UnloadOldTiles(void);
|
|
uint32 _mapid;
|
|
uint32 _gridx,_gridy;
|
|
bool _mapsLoaded;
|
|
};
|
|
|
|
#endif |