#include <global_skills.h>
Collaboration diagram for hoa_global::GlobalStatusEffect:

Public Member Functions | |
| bool | DecrementIntensity (uint8 amount) |
| Decrements the status effect intensity by a specified amount. | |
| GlobalStatusEffect (GLOBAL_STATUS type, GLOBAL_INTENSITY intensity=GLOBAL_INTENSITY_NEUTRAL) | |
| bool | IncrementIntensity (uint8 amount) |
| Increments the status effect intensity by a positive amount. | |
| ~GlobalStatusEffect () | |
| GLOBAL_INTENSITY | GetIntensity () const |
| GLOBAL_STATUS | GetType () const |
| Class Member Access Functions. | |
| void | SetIntensity (GLOBAL_INTENSITY intensity) |
Private Attributes | |
| GLOBAL_INTENSITY | _intensity |
| The level of intensity of the status effect There are four levels of intensity, as indicated by the Status Effect Intensities constants. This member should only ever equal one of those values. | |
| GLOBAL_STATUS | _type |
| The type (identifier) of status that the object represents Refer to the Status Effect Types for a list of the valid types and values that this member may be. | |
****************************************************************************
Status effects are either aiding (boost to strength) or ailing (poisoned). An object of this class represents a single status effect (not mulitple). A feature unique to Allacrost is that status effects have different levels of intensity, four to be exact.
Definition at line 184 of file global_skills.h.
| hoa_global::GlobalStatusEffect::GlobalStatusEffect | ( | GLOBAL_STATUS | type, | |
| GLOBAL_INTENSITY | intensity = GLOBAL_INTENSITY_NEUTRAL | |||
| ) | [inline] |
Definition at line 186 of file global_skills.h.
| hoa_global::GlobalStatusEffect::~GlobalStatusEffect | ( | ) | [inline] |
Definition at line 189 of file global_skills.h.
| bool hoa_global::GlobalStatusEffect::DecrementIntensity | ( | uint8 | amount | ) |
Decrements the status effect intensity by a specified amount.
| amount | The number of intensity levels to decrement the status effect by |
Definition at line 79 of file global_skills.cpp.
References _intensity, hoa_global::GLOBAL_DEBUG, hoa_global::GLOBAL_INTENSITY_INVALID, and hoa_global::GLOBAL_INTENSITY_NEUTRAL.
| GLOBAL_INTENSITY hoa_global::GlobalStatusEffect::GetIntensity | ( | ) | const [inline] |
| GLOBAL_STATUS hoa_global::GlobalStatusEffect::GetType | ( | ) | const [inline] |
| bool hoa_global::GlobalStatusEffect::IncrementIntensity | ( | uint8 | amount | ) |
Increments the status effect intensity by a positive amount.
| amount | The number of intensity levels to increase the status effect by |
Definition at line 45 of file global_skills.cpp.
References _intensity, hoa_global::GLOBAL_DEBUG, and hoa_global::GLOBAL_INTENSITY_POS_EXTREME.
| void hoa_global::GlobalStatusEffect::SetIntensity | ( | GLOBAL_INTENSITY | intensity | ) | [inline] |
The level of intensity of the status effect There are four levels of intensity, as indicated by the Status Effect Intensities constants. This member should only ever equal one of those values.
Definition at line 242 of file global_skills.h.
Referenced by DecrementIntensity(), GetIntensity(), IncrementIntensity(), and SetIntensity().
The type (identifier) of status that the object represents Refer to the Status Effect Types for a list of the valid types and values that this member may be.
Definition at line 236 of file global_skills.h.
Referenced by GetType().
1.5.1