Added enums for item ability, item variety, item weapon type, and terrain special ability.

git-svn-id: http://openexile.googlecode.com/svn/trunk@43 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-04-28 19:20:32 +00:00
parent 3efed5dcc7
commit ce0b3c6089
17 changed files with 307 additions and 278 deletions

View File

@@ -8,13 +8,42 @@
namespace legacy { struct terrain_type_type; };
/* Terrains Specials Properties : scenario.ter_types[i].special */ //complete
enum eTerSpec {
TER_SPEC_NONE = 0,
TER_SPEC_CHANGE_WHEN_STEP_ON = 1,
TER_SPEC_DOES_FIRE_DAMAGE = 2,
TER_SPEC_DOES_COLD_DAMAGE = 3,
TER_SPEC_DOES_MAGIC_DAMAGE = 4,
TER_SPEC_POISON_LAND = 5,
TER_SPEC_DISEASED_LAND = 6,
TER_SPEC_CRUMBLING_TERRAIN = 7,
TER_SPEC_LOCKABLE_TERRAIN = 8,
TER_SPEC_UNLOCKABLE_TERRAIN = 9,
TER_SPEC_UNLOCKABLE_BASHABLE = 10,
TER_SPEC_IS_A_SIGN = 11,
TER_SPEC_CALL_LOCAL_SPECIAL = 12,
TER_SPEC_CALL_SCENARIO_SPECIAL = 13,
TER_SPEC_IS_A_CONTAINER = 14,
TER_SPEC_WATERFALL = 15,
TER_SPEC_CONVEYOR_NORTH = 16,
TER_SPEC_CONVEYOR_EAST = 17,
TER_SPEC_CONVEYOR_SOUTH = 18,
TER_SPEC_CONVEYOR_WEST = 19,
TER_SPEC_BLOCKED_TO_MONSTERS = 20,
TER_SPEC_TOWN_ENTRANCE = 21,
TER_SPEC_CHNAGE_WHEN_USED = 22,
TER_SPEC_CALL_SPECIAL_WHEN_USED = 23,
};
class cTerrain {
public:
short picture;
unsigned char blockage;
unsigned char flag1;
unsigned char flag2;
unsigned char special;
eTerSpec special;
unsigned char trans_to_what;
unsigned char fly_over;
unsigned char boat_over;