Gets resistances without any abilities applied. The unit's resistance against a given attack. Resistance_against (const attack_type &atk, bool attacker, const map_location &loc, const_attack_ptr weapon=nullptr) const The unit's resistance against a given damage type. Resistance_against (const std::string &damage_name, bool attacker, const map_location &loc, const_attack_ptr weapon=nullptr, const_attack_ptr opp_weapon=nullptr) const More.ĭefense_modifier (const t_translation::terrain_code &terrain) const Sets the number of attacks this unit has left this turn. Gets the remaining number of attacks this unit can perform this turn. The maximum number of attacks this unit may perform per turn, usually 1. More.ĭamage_from (const attack_type &attack, bool attacker, const map_location &loc, const_attack_ptr weapon=nullptr) constĬalculates the damage this unit would take from a certain attack. Set the unit to have no attacks left for this turn. More.Īdd_attack (attack_itors::iterator position, Args &. Gets an iterator over this unit's attacks. More.Ĭheck if the unit has been petrified. More.Ĭheck if the unit has been poisoned. Set whether the unit is affected by a status effect. Set_state (const std::string &state, bool value) Get_state (const std::string &state) constĬheck if the unit is affected by a status effect. Get the status effects currently affecting the unit. More.įully heal the unit, restoring it to max hitpoints. Refresh unit for the beginning of a new scenario. Refresh unit for the beginning of a turn. More.Ĭheck whether the user ended their turn. Toggle whether the user ended their turn. Whether the unit has been instructed to hold its position. The factor by which the XP bar should be scaled. The factor by which the HP bar should be scaled. Sets whether the unit is hidden on the map. Gets whether this unit is currently hidden on the map. Gets any user-defined variables this unit 'owns'. Sets the filter constraints upon which units this unit may recall, if able. Gets the filter constraints upon which units this unit may recall, if able. How much gold it costs to recall this unit, or -1 if the side's default recall cost is used. How much gold is required to recruit this unit. Set_recruits (const std::vector & recruits) The type IDs of the other units this unit may recruit, if possible. The number of experience points over max this unit has, or 0 if current XP & The number of experience points this unit needs to level up, or 0 if current XP > max XP. The max number of experience points this unit can have. The current number of experience points this unit has. The max number of hitpoints this unit can have. The current number of hitpoints this unit has. Set_alignment (unit_alignments::type alignment) Set_unit_description (const t_string &new_desc) More.Ī detailed description of this unit. More.Īttempts to rename this unit's translatable display name, taking the 'unrenamable' flag into account. Sets this unit's translatable display name. Gets this unit's translatable display name. Gets the translatable name of this unit's type. This unit's type, accounting for gender and variation. Sets the raw modification advancement option data. Set_advancements (std::vector advancements) The raw, unparsed data for modification advancements. Gets the image and description data for modification advancements. Gets any non-typed advanced options set by modifications. Gets and image path and and associated description for each advancement option. More.Ĭhecks whether this unit is eligible for level-up. More.Ĭhecks whether this unit has any options to advance to. Set_advances_to (const std::vector & advances_to) Gets the names of the possible types this unit can advance to on level-up. Gets the possible types this unit can advance to on level-up. More.Īdvance_to (const unit_type & t, bool use_traits=false)Īdvances this unit to another type. More.īuilt-in status effects known to the engine. Visitor helper class to fetch the appropriate upkeep value. Visitor helper struct to fetch the upkeep type flag if applicable, or the the value otherwise. Visitor helper class to parse the upkeep value from a config. This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.
0 Comments
Leave a Reply. |