mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Add new map sizes
This commit is contained in:
parent
3be9969154
commit
b3d60ec418
@ -245,5 +245,5 @@ void RandomMapTab::validateCompOnlyPlayersCnt(int compOnlyPlayersCnt)
|
||||
|
||||
std::vector<int> RandomMapTab::getPossibleMapSizes()
|
||||
{
|
||||
return {CMapHeader::MAP_SIZE_SMALL, CMapHeader::MAP_SIZE_MIDDLE, CMapHeader::MAP_SIZE_LARGE, CMapHeader::MAP_SIZE_XLARGE};
|
||||
return {CMapHeader::MAP_SIZE_SMALL, CMapHeader::MAP_SIZE_MIDDLE, CMapHeader::MAP_SIZE_LARGE, CMapHeader::MAP_SIZE_XLARGE, CMapHeader::MAP_SIZE_HUGE, CMapHeader::MAP_SIZE_XHUGE, CMapHeader::MAP_SIZE_GIANT};
|
||||
}
|
||||
|
@ -284,6 +284,9 @@ public:
|
||||
static const int MAP_SIZE_MIDDLE = 72;
|
||||
static const int MAP_SIZE_LARGE = 108;
|
||||
static const int MAP_SIZE_XLARGE = 144;
|
||||
static const int MAP_SIZE_HUGE = 180;
|
||||
static const int MAP_SIZE_XHUGE = 216;
|
||||
static const int MAP_SIZE_GIANT = 252;
|
||||
|
||||
CMapHeader();
|
||||
virtual ~CMapHeader();
|
||||
|
@ -134,6 +134,12 @@ int CMapInfo::getMapSizeIconId() const
|
||||
return 2;
|
||||
case CMapHeader::MAP_SIZE_XLARGE:
|
||||
return 3;
|
||||
case CMapHeader::MAP_SIZE_HUGE:
|
||||
return 4;
|
||||
case CMapHeader::MAP_SIZE_XHUGE:
|
||||
return 5;
|
||||
case CMapHeader::MAP_SIZE_GIANT:
|
||||
return 6;
|
||||
default:
|
||||
return 4;
|
||||
}
|
||||
@ -180,6 +186,12 @@ std::string CMapInfo::getMapSizeName() const
|
||||
return "L";
|
||||
case CMapHeader::MAP_SIZE_XLARGE:
|
||||
return "XL";
|
||||
case CMapHeader::MAP_SIZE_HUGE:
|
||||
return "H";
|
||||
case CMapHeader::MAP_SIZE_XHUGE:
|
||||
return "XH";
|
||||
case CMapHeader::MAP_SIZE_GIANT:
|
||||
return "G";
|
||||
default:
|
||||
return "C";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user