mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
* refactoring
This commit is contained in:
@@ -131,8 +131,8 @@ struct DLL_LINKAGE CObstacleInfo
|
||||
{
|
||||
si32 ID;
|
||||
std::string defName;
|
||||
std::vector<ETerrainType::ETerrainType> allowedTerrains;
|
||||
std::vector<BFieldType::BFieldType> allowedSpecialBfields;
|
||||
std::vector<ETerrainType> allowedTerrains;
|
||||
std::vector<BFieldType> allowedSpecialBfields;
|
||||
|
||||
ui8 isAbsoluteObstacle; //there may only one such obstacle in battle and its position is always the same
|
||||
si32 width, height; //how much space to the right and up is needed to place obstacle (affects only placement algorithm)
|
||||
@@ -140,7 +140,7 @@ struct DLL_LINKAGE CObstacleInfo
|
||||
|
||||
std::vector<BattleHex> getBlocked(BattleHex hex) const; //returns vector of hexes blocked by obstacle when it's placed on hex 'hex'
|
||||
|
||||
bool isAppropriate(ETerrainType::ETerrainType terrainType, int specialBattlefield = -1) const;
|
||||
bool isAppropriate(ETerrainType terrainType, int specialBattlefield = -1) const;
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user