include/battle/weapon_kind.h
The kinds of weapon a party member's attack shows, and how BattleUnitWeaponKinds packs one with its item.
Included by battle_internal.h, battle_tables.c and battle_unit_tables.c.
Macros
| Name | Description | |
|---|---|---|
#define | WEAPON_ITEM_MASK 0x1ff | BattleUnitWeaponKinds: a weapon's item id with its kind above it. |
#define | WEAPON_KIND_SHIFT 9 | |
#define | WEAPON (item, kind) ((item) | (kind) << WEAPON_KIND_SHIFT) | A row of BattleUnitWeaponKinds: the item and its kind. |
Enumerations
| Name | Description | |
|---|---|---|
enum | BATTLE_WEAPON_KIND { WEAPON_KIND_LONG_SWORD, WEAPON_KIND_LIGHT_BLADE, WEAPON_KIND … } | The kinds of weapon a party member's attack shows, by the rows of BattleUnitWeaponKinds. |
Description
The kinds of weapon a party member's attack shows, and how
BattleUnitWeaponKinds packs one with its item.
Macros in detail
WEAPON_ITEM_MASK
#define WEAPON_ITEM_MASK 0x1ff
BattleUnitWeaponKinds: a weapon's item id with its kind above it.
Referenced by btUnitGetWeaponKind().
Definition at line 7 of file weapon_kind.h.
WEAPON_KIND_SHIFT
#define WEAPON_KIND_SHIFT 9
Referenced by btUnitGetWeaponKind().
Definition at line 8 of file weapon_kind.h.
WEAPON
#define WEAPON(item, kind) ((item) | (kind) << WEAPON_KIND_SHIFT)
A row of BattleUnitWeaponKinds: the item and its kind.
Referenced by BattleUnitWeaponKinds.
Definition at line 24 of file weapon_kind.h.
Enumerations in detail
BATTLE_WEAPON_KIND
enum BATTLE_WEAPON_KIND
The kinds of weapon a party member's attack shows, by the rows of
BattleUnitWeaponKinds.
| Enumerator | Value | Description |
|---|---|---|
WEAPON_KIND_LONG_SWORD | ||
WEAPON_KIND_LIGHT_BLADE | ||
WEAPON_KIND_AXE | ||
WEAPON_KIND_MACE | ||
WEAPON_KIND_STAFF | ||
WEAPON_KIND_ANKH | ||
WEAPON_KIND_NONE | an item the list lacks |
Definition at line 12 of file weapon_kind.h.