mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
* handling Def 2 compression (may be a bit buggy)
* small improvement in int3 class
This commit is contained in:
parent
b38a8c9557
commit
b2d1b4f3e4
BIN
CDefHandler.cpp
BIN
CDefHandler.cpp
Binary file not shown.
6
int3.h
6
int3.h
@ -41,11 +41,11 @@ class int3
|
|||||||
y+=i;
|
y+=i;
|
||||||
z+=i;
|
z+=i;
|
||||||
}
|
}
|
||||||
inline bool operator==(const int3 & i)
|
inline bool operator==(const int3 & i) const
|
||||||
{return (x==i.x) && (y==i.y) && (z==i.z);}
|
{return (x==i.x) && (y==i.y) && (z==i.z);}
|
||||||
inline bool operator!=(const int3 & i)
|
inline bool operator!=(const int3 & i) const
|
||||||
{return !(*this==i);}
|
{return !(*this==i);}
|
||||||
inline bool operator<(const int3 & i)
|
inline bool operator<(const int3 & i) const
|
||||||
{
|
{
|
||||||
if (z<i.z)
|
if (z<i.z)
|
||||||
return true;
|
return true;
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
void CMapHandler::init()
|
void CMapHandler::init()
|
||||||
{
|
{
|
||||||
fullHide = CGameInfo::mainObj->spriteh->giveDef("TSHRC.DEF");
|
fullHide = CGameInfo::mainObj->spriteh->giveDef("TSHRC.DEF");
|
||||||
partialHide = CGameInfo::mainObj->sspriteh->giveDef("TSHRE.DEF");
|
partialHide = CGameInfo::mainObj->spriteh->giveDef("TSHRE.DEF");
|
||||||
|
|
||||||
for(int i=0; i<partialHide->ourImages.size(); ++i)
|
for(int i=0; i<partialHide->ourImages.size(); ++i)
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
SDL_Surface * terrBitmap(int x, int y);
|
SDL_Surface * terrBitmap(int x, int y);
|
||||||
SDL_Surface * undTerrBitmap(int x, int y);
|
SDL_Surface * undTerrBitmap(int x, int y);
|
||||||
CDefHandler * fullHide;
|
CDefHandler * fullHide;
|
||||||
CSemiDefHandler * partialHide;
|
CDefHandler * partialHide;
|
||||||
|
|
||||||
std::vector< std::vector<char> > visibility; //true means that pointed place is visible
|
std::vector< std::vector<char> > visibility; //true means that pointed place is visible
|
||||||
std::vector< std::vector<char> > undVisibility; //true means that pointed place is visible
|
std::vector< std::vector<char> > undVisibility; //true means that pointed place is visible
|
||||||
|
Loading…
Reference in New Issue
Block a user