nw::CombatInfo
-
struct CombatInfo
Public Functions
-
CombatInfo() = default
-
CombatInfo(CombatInfo&) = default
-
CombatInfo(CombatInfo&&) = default
-
CombatInfo &operator=(CombatInfo&) = delete
-
CombatInfo &operator=(CombatInfo&&) = default
-
bool from_json(const nlohmann::json &archive)
-
nlohmann::json to_json() const
Public Members
-
int ac_natural_bonus = 0
-
int attack_current = 0
Current attack counter.
Note
Invariant: attack_current <= attacks_onhand + attacks_offhand + attacks_extra
-
int attacks_onhand = 0
-
int attacks_offhand = 0
-
int attacks_extra = 0
-
nw::ObjectBase *target = nullptr
-
float target_distance_sq = 0.0f
Distance to target squared.
-
TargetState target_state = TargetState::none
-
int ac_armor_base = 0
-
int ac_shield_base = 0
-
CombatMode combat_mode = nw::CombatMode::invalid()
-
int32_t size_ab_modifier = 0
-
int32_t size_ac_modifier = 0
-
Vector<SpecialAbility> special_abilities
-
CombatInfo() = default