1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Rewritten battle obstacles. New file for lib: CObstacleInstance.cpp.

Now obstacles should be placed exactly like they were in OH3. 
All problems with displaying obstacles in battlefield should be gone. They should be now matched to the single pixel. 
If there are still some discrepancies, please report them.
This commit is contained in:
Michał W. Urbańczyk
2012-04-23 19:56:37 +00:00
parent 6d03e0bf23
commit 7dc0d6878e
16 changed files with 1606 additions and 300 deletions

View File

@@ -187,6 +187,7 @@ namespace Obj
BOAT = 8,
CREATURE_BANK = 16,
CREATURE_GENERATOR1 = 17,
CURSED_GROUND1 = 21,
DERELICT_SHIP = 24,
DRAGON_UTOPIA = 25,
GARRISON = 33,
@@ -194,6 +195,7 @@ namespace Obj
MONOLITH1 = 43,
MONOLITH2 = 44,
MONOLITH3 = 45,
MAGIC_PLAINS1 = 46,
SCHOOL_OF_MAGIC = 47,
MINE = 53,
MONSTER = 54,
@@ -209,6 +211,35 @@ namespace Obj
WHIRLPOOL = 111,
BORDER_GATE = 212,
GARRISON2 = 219,
CLOVER_FIELD = 222,
CURSED_GROUND2 = 223,
EVIL_FOG = 224,
FAVORABLE_WINDS = 225,
FIERY_FIELDS = 226,
HOLY_GROUNDS = 227,
LUCID_POOLS = 228,
MAGIC_CLOUDS = 229,
MAGIC_PLAINS2 = 230,
ROCKLANDS = 231,
};
}
//follows ERM BI (battle image) format
namespace BattlefieldBI
{
enum
{
NONE = -1,
COASTAL,
CURSED_GROUND,
MAGIC_PLAINS,
HOLY_GROUND,
EVIL_FOG,
CLOVER_FIELD,
LUCID_POOLS,
FIERY_FIELDS,
ROCKLANDS,
MAGIC_CLOUDS,
};
}