forked from OpenEnroth/OpenEnroth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b090331
commit a8d40b7
Showing
9 changed files
with
135 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
#include "Utility/Segment.h" | ||
|
||
// TODO(captainurist): Rename to MonsterId? | ||
// TODO(captainurist): codegen enum values. | ||
enum class MONSTER_TYPE { | ||
MONSTER_0 = 0, // TODO(captainurist): MONSTER_INVALID? | ||
MONSTER_1 = 1, | ||
MONSTER_DEVIL_1 = 22, | ||
MONSTER_DEVIL_2 = 23, | ||
MONSTER_DEVIL_3 = 24, | ||
MONSTER_DRAGON_1 = 25, | ||
MONSTER_DRAGON_2 = 26, | ||
MONSTER_DRAGON_3 = 27, | ||
MONSTER_45 = 45, | ||
MONSTER_ELEMENTAL_WATER_1 = 46, | ||
MONSTER_ELEMENTAL_WATER_3 = 48, | ||
MONSTER_ELF_ARCHER_1 = 49, | ||
MONSTER_ELF_ARCHER_3 = 51, | ||
MONSTER_ELF_SPEARMAN_1 = 52, | ||
MONSTER_ELF_SPEARMAN_3 = 54, | ||
MONSTER_GHOST_1 = 70, | ||
MONSTER_GHOST_3 = 72, | ||
MONSTER_HARPY_1 = 85, | ||
MONSTER_HARPY_2 = 86, | ||
MONSTER_HARPY_3 = 87, | ||
MONSTER_LICH_1 = 91, | ||
MONSTER_LICH_3 = 93, | ||
MONSTER_OOZE_1 = 112, | ||
MONSTER_OOZE_2 = 113, | ||
MONSTER_OOZE_3 = 114, | ||
MONSTER_115 = 115, | ||
MONSTER_PEASANT_ELF_FEMALE_1_1 = 133, | ||
MONSTER_PEASANT_ELF_MALE_3_3 = 150, | ||
MONSTER_186 = 186, | ||
MONSTER_SKELETON_1 = 199, | ||
MONSTER_SKELETON_3 = 201, | ||
MONSTER_TITAN_1 = 211, | ||
MONSTER_TITAN_3 = 213, | ||
MONSTER_VAMPIRE_1 = 217, | ||
MONSTER_VAMPIRE_3 = 219, | ||
MONSTER_WIGHT_1 = 223, | ||
MONSTER_WIGHT_3 = 225, | ||
MONSTER_ZOMBIE_1 = 229, | ||
MONSTER_ZOMBIE_3 = 231, | ||
MONSTER_232 = 232, | ||
MONSTER_PEASANT_GOBLIN_MALE_3_3 = 249, | ||
MONSTER_TROLL_1 = 250, | ||
MONSTER_TROLL_2 = 251, | ||
MONSTER_TROLL_3 = 252, | ||
MONSTER_TREANT_1 = 253, | ||
MONSTER_TREANT_3 = 255, | ||
MONSTER_GHOUL_1 = 256, | ||
MONSTER_GHOUL_3 = 258, | ||
|
||
MONSTER_FIRST = MONSTER_1, | ||
MONSTER_LAST = 277, | ||
|
||
MONSTER_FIRST_ARENA = MONSTER_1, | ||
MONSTER_LAST_ARENA = MONSTER_GHOUL_3 | ||
}; | ||
using enum MONSTER_TYPE; | ||
|
||
inline Segment<MONSTER_TYPE> allArenaMonsters() { | ||
return {MONSTER_FIRST_ARENA, MONSTER_LAST_ARENA}; | ||
} | ||
|
||
/* 335 */ | ||
enum class MONSTER_SPECIAL_ABILITY_TYPE { | ||
MONSTER_SPECIAL_ABILITY_NONE = 0x0, | ||
MONSTER_SPECIAL_ABILITY_SHOT = 0x1, | ||
MONSTER_SPECIAL_ABILITY_SUMMON = 0x2, | ||
MONSTER_SPECIAL_ABILITY_EXPLODE = 0x3, | ||
}; | ||
using enum MONSTER_SPECIAL_ABILITY_TYPE; | ||
|
||
enum class MONSTER_MOVEMENT_TYPE { | ||
MONSTER_MOVEMENT_TYPE_SHORT = 0x0, | ||
MONSTER_MOVEMENT_TYPE_MEDIUM = 0x1, | ||
MONSTER_MOVEMENT_TYPE_LONG = 0x2, | ||
MONSTER_MOVEMENT_TYPE_GLOBAL = 0x3, | ||
MONSTER_MOVEMENT_TYPE_FREE = 0x4, | ||
MONSTER_MOVEMENT_TYPE_STATIONARY = 0x5, | ||
}; | ||
using enum MONSTER_MOVEMENT_TYPE; | ||
|
||
/* 336 */ | ||
enum class MONSTER_SUPERTYPE { | ||
MONSTER_SUPERTYPE_UNDEAD = 0x1, | ||
MONSTER_SUPERTYPE_KREEGAN = 0x2, | ||
MONSTER_SUPERTYPE_DRAGON = 0x3, | ||
MONSTER_SUPERTYPE_ELF = 0x4, | ||
MONSTER_SUPERTYPE_WATER_ELEMENTAL = 0x5, | ||
MONSTER_SUPERTYPE_TREANT = 0x6, | ||
MONSTER_SUPERTYPE_TITAN = 0x7, | ||
MONSTER_SUPERTYPE_8 = 0x8, | ||
}; | ||
using enum MONSTER_SUPERTYPE; | ||
|
||
enum class SPECIAL_ATTACK_TYPE : uint8_t { | ||
SPECIAL_ATTACK_NONE = 0, | ||
SPECIAL_ATTACK_CURSE = 1, | ||
SPECIAL_ATTACK_WEAK = 2, | ||
SPECIAL_ATTACK_SLEEP = 3, | ||
SPECIAL_ATTACK_DRUNK = 4, | ||
SPECIAL_ATTACK_INSANE = 5, | ||
SPECIAL_ATTACK_POISON_WEAK = 6, | ||
SPECIAL_ATTACK_POISON_MEDIUM = 7, | ||
SPECIAL_ATTACK_POISON_SEVERE = 8, | ||
SPECIAL_ATTACK_DISEASE_WEAK = 9, | ||
SPECIAL_ATTACK_DISEASE_MEDIUM = 10, | ||
SPECIAL_ATTACK_DISEASE_SEVERE = 11, | ||
SPECIAL_ATTACK_PARALYZED = 12, | ||
SPECIAL_ATTACK_UNCONSCIOUS = 13, | ||
SPECIAL_ATTACK_DEAD = 14, | ||
SPECIAL_ATTACK_PETRIFIED = 15, | ||
SPECIAL_ATTACK_ERADICATED = 16, | ||
SPECIAL_ATTACK_BREAK_ANY = 17, | ||
SPECIAL_ATTACK_BREAK_ARMOR = 18, | ||
SPECIAL_ATTACK_BREAK_WEAPON = 19, | ||
SPECIAL_ATTACK_STEAL = 20, | ||
SPECIAL_ATTACK_AGING = 21, | ||
SPECIAL_ATTACK_MANA_DRAIN = 22, | ||
SPECIAL_ATTACK_FEAR = 23, | ||
}; | ||
using enum SPECIAL_ATTACK_TYPE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "Engine/Objects/Monsters.h" | ||
#include "Monsters.h" | ||
|
||
#include <string> | ||
#include <utility> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters