mirror of
https://github.com/ENSL/NS.git
synced 2024-11-27 14:52:11 +00:00
b5590dd5d9
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@144 67975925-1194-0748-b3d5-c16f83f1a3a1
63 lines
No EOL
1.2 KiB
C++
63 lines
No EOL
1.2 KiB
C++
#ifndef AVH_MAP_EXTENTS_H
|
|
#define AVH_MAP_EXTENTS_H
|
|
|
|
class AvHMapExtents
|
|
{
|
|
public:
|
|
AvHMapExtents();
|
|
|
|
#ifdef AVH_SERVER
|
|
void CalculateMapExtents();
|
|
#endif
|
|
|
|
void ResetMapExtents();
|
|
|
|
float GetMinViewHeight() const;
|
|
float GetMaxViewHeight() const;
|
|
|
|
void SetMinViewHeight(float inViewHeight);
|
|
void SetMaxViewHeight(float inViewHeight);
|
|
|
|
float GetMinMapX() const;
|
|
float GetMaxMapX() const;
|
|
|
|
void SetMinMapX(float inMapX);
|
|
void SetMaxMapX(float inMapX);
|
|
|
|
float GetMinMapY() const;
|
|
float GetMaxMapY() const;
|
|
|
|
void SetMinMapY(float inMapY);
|
|
void SetMaxMapY(float inMapY);
|
|
|
|
bool GetDrawMapBG() const;
|
|
void SetDrawMapBG(bool inDrawMapBG);
|
|
|
|
#ifdef AVH_SERVER
|
|
float GetTopDownCullDistance() const;
|
|
void SetTopDownCullDistance(float inCullDistance);
|
|
|
|
void SendToNetworkStream() const;
|
|
#endif
|
|
|
|
#ifdef AVH_CLIENT
|
|
int ReceiveFromNetworkStream();
|
|
#endif
|
|
|
|
private:
|
|
bool mCalculatedMapExtents;
|
|
|
|
float mMinViewHeight;
|
|
float mMaxViewHeight;
|
|
float mMinMapX;
|
|
float mMinMapY;
|
|
float mMaxMapX;
|
|
float mMaxMapY;
|
|
bool mDrawMapBG;
|
|
|
|
#ifdef AVH_SERVER
|
|
float mTopDownCullDistance;
|
|
#endif
|
|
};
|
|
|
|
#endif |