hoa_battle::private_battle::BattleActor Class Reference

This is an interface class for all the battle actors (eg. the player and the monsters). More...

#include <battle_actors.h>

Inheritance diagram for hoa_battle::private_battle::BattleActor:

Inheritance graph
[legend]
Collaboration diagram for hoa_battle::private_battle::BattleActor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BattleActor ()
virtual void CalcEvade (hoa_global::GlobalAttackPoint *attack_point=NULL)
virtual void CalcMetaPhysicalAttack ()
virtual void CalcMetaPhysicalDefense (hoa_global::GlobalAttackPoint *attack_point=NULL)
virtual void CalcPhysicalAttack ()
virtual void CalcPhysicalDefense (hoa_global::GlobalAttackPoint *attack_point=NULL)
virtual void DrawStatus ()
virtual void DrawTimePortrait (bool is_selected)
 Draws the actor's current sprite animation frame.
float GetTimePortraitLocation ()
hoa_system::SystemTimerGetWaitTime ()
void InitBattleActorStats (hoa_global::GlobalActor *actor)
virtual bool IsAlive ()
virtual bool IsEnemy ()
bool IsQueuedToPerform () const
 Is the character queued to attack?
virtual void OnDeath ()
virtual void OnLife ()
void ResetWaitTime ()
 Gets a pointer to the GlobalActor.
void SetQueuedToPerform (bool QueuedToPerform)
 Sets queued to perform.
void SetTimePortraitLocation (float new_val)
virtual void TakeDamage (int32 damage)
bool TEMP_IsAttacking () const
 Is the monster attacking right now.
void TEMP_ResetAttackTimer ()
virtual ~BattleActor ()
Getters for the actor's stats
uint32 GetAgility () const
float GetEvade () const
uint32 GetFortitude () const
uint32 GetHitPoints () const
uint32 GetMaxHitPoints () const
uint32 GetMaxSkillPoints () const
uint32 GetProtection () const
uint32 GetSkillPoints () const
uint32 GetStrength () const
uint32 GetVigor () const
Getters for the actor's combat stats
float GetCombatEvade () const
uint32 GetMetaPhysicalAttack () const
uint32 GetMetaPhysicalDefense () const
uint32 GetPhysicalAttack () const
uint32 GetPhysicalDefense () const
Getters and setters for the current and the original coordinates
float GetXLocation () const
float GetXOrigin () const
float GetYLocation () const
float GetYOrigin () const
void SetXLocation (float x_location)
void SetXOrigin (float x_origin)
void SetYLocation (float y_location)
void SetYOrigin (float y_origin)
Getters and setters for the actor's stats
void SetAgility (uint32 agility)
void SetEvade (float evade)
void SetFortitude (uint32 fortitude)
void SetHitPoints (uint32 hp)
void SetMaxHitPoints (uint32 max_hp)
void SetMaxSkillPoints (uint32 max_sp)
void SetProtection (uint32 protection)
void SetSkillPoints (uint32 sp)
void SetStrength (uint32 strength)
void SetVigor (uint32 vigor)

Protected Member Functions

void _RecalculateWaitTime ()
 Recalculates wait time if agility has changed.

Protected Attributes

uint32 _damage_dealt
 How much damage was dealt on the last strike.
bool _is_queued_to_perform
 Is the character queued to attack?
uint32 _last_update_time
 The last time the actor was updated.
hoa_system::SystemTimer _TEMP_attack_animation_timer
 Timer for the attack animation.
hoa_video::StillImage _time_meter_portrait
 Portrait for the time meter.
float _time_portrait_location
 The y-value of it's location, since x is fixed.
hoa_video::StillImage _time_portrait_selected
 The image used to highlight time portraits for selected actors.
uint32 _total_time_damaged
 Variable for tracking time (ms) on how long to show the damage text.
hoa_system::SystemTimer _wait_time
 Amount of time character spends in the idle phase.
float _x_location
 Character's X-coordinate on the screen.
float _x_origin
 Starting X coordinate of the character.
float _y_location
 Character's Y-coordinate on the screen.
float _y_origin
 Starting Y coordinate of the character.
Actor's stats, copied from GlobalActor
uint32 _agility
float _evade
uint32 _fortitude
uint32 _hp
uint32 _max_hp
uint32 _max_sp
uint32 _protection
uint32 _sp
uint32 _strength
uint32 _vigor
Actor's attack and defense stats. Derived from base stats, equipment, and effects
float _combat_evade
uint32 _metaphysical_attack
uint32 _metaphysical_defense
uint32 _physical_attack
uint32 _physical_defense

Detailed Description

This is an interface class for all the battle actors (eg. the player and the monsters).

****************************************************************************

Note:
This class is used because we no longer need try-catch blocks when converting pointers from GlobalActor to either BattleCharacterActor or BattleEnemyActor. Of course it helps to keep things a bit more generic and maintainable as well. ;)

Definition at line 116 of file battle_actors.h.


Constructor & Destructor Documentation

hoa_battle::private_battle::BattleActor::BattleActor (  ) 

Definition at line 49 of file battle_actors.cpp.

References _TEMP_attack_animation_timer, _time_portrait_selected, hoa_system::SystemTimer::Initialize(), hoa_video::GameVideo::LoadImage(), hoa_system::SystemTimer::Run(), hoa_video::StillImage::SetDimensions(), hoa_video::StillImage::SetFilename(), and hoa_video::VideoManager.

Here is the call graph for this function:

hoa_battle::private_battle::BattleActor::~BattleActor (  )  [virtual]

Definition at line 63 of file battle_actors.cpp.

References _time_portrait_selected, hoa_video::GameVideo::DeleteImage(), and hoa_video::VideoManager.

Here is the call graph for this function:


Member Function Documentation

void hoa_battle::private_battle::BattleActor::_RecalculateWaitTime (  )  [protected]

Recalculates wait time if agility has changed.

virtual void hoa_battle::private_battle::BattleActor::CalcEvade ( hoa_global::GlobalAttackPoint attack_point = NULL  )  [inline, virtual]

Reimplemented in hoa_battle::private_battle::BattleCharacterActor, and hoa_battle::private_battle::BattleEnemyActor.

Definition at line 172 of file battle_actors.h.

Referenced by hoa_battle::private_battle::ScriptEvent::RunScript().

virtual void hoa_battle::private_battle::BattleActor::CalcMetaPhysicalAttack (  )  [inline, virtual]

Reimplemented in hoa_battle::private_battle::BattleCharacterActor, and hoa_battle::private_battle::BattleEnemyActor.

Definition at line 163 of file battle_actors.h.

Referenced by InitBattleActorStats(), and hoa_battle::private_battle::ScriptEvent::RunScript().

virtual void hoa_battle::private_battle::BattleActor::CalcMetaPhysicalDefense ( hoa_global::GlobalAttackPoint attack_point = NULL  )  [inline, virtual]

Reimplemented in hoa_battle::private_battle::BattleCharacterActor, and hoa_battle::private_battle::BattleEnemyActor.

Definition at line 169 of file battle_actors.h.

Referenced by InitBattleActorStats(), and hoa_battle::private_battle::ScriptEvent::RunScript().

virtual void hoa_battle::private_battle::BattleActor::CalcPhysicalAttack (  )  [inline, virtual]

Reimplemented in hoa_battle::private_battle::BattleCharacterActor, and hoa_battle::private_battle::BattleEnemyActor.

Definition at line 160 of file battle_actors.h.

Referenced by InitBattleActorStats(), and hoa_battle::private_battle::ScriptEvent::RunScript().

virtual void hoa_battle::private_battle::BattleActor::CalcPhysicalDefense ( hoa_global::GlobalAttackPoint attack_point = NULL  )  [inline, virtual]

Reimplemented in hoa_battle::private_battle::BattleCharacterActor, and hoa_battle::private_battle::BattleEnemyActor.

Definition at line 166 of file battle_actors.h.

Referenced by InitBattleActorStats(), and hoa_battle::private_battle::ScriptEvent::RunScript().

virtual void hoa_battle::private_battle::BattleActor::DrawStatus (  )  [inline, virtual]

Reimplemented in hoa_battle::private_battle::BattleCharacterActor, and hoa_battle::private_battle::BattleEnemyActor.

Definition at line 175 of file battle_actors.h.

void hoa_battle::private_battle::BattleActor::DrawTimePortrait ( bool  is_selected  )  [virtual]

Draws the actor's current sprite animation frame.

Definition at line 89 of file battle_actors.cpp.

References _time_meter_portrait, _time_portrait_location, _time_portrait_selected, hoa_video::GameVideo::DrawImage(), IsAlive(), hoa_video::GameVideo::Move(), and hoa_video::VideoManager.

Here is the call graph for this function:

uint32 hoa_battle::private_battle::BattleActor::GetAgility (  )  const [inline]

Definition at line 267 of file battle_actors.h.

References _agility.

float hoa_battle::private_battle::BattleActor::GetCombatEvade (  )  const [inline]

Definition at line 237 of file battle_actors.h.

References _combat_evade.

float hoa_battle::private_battle::BattleActor::GetEvade (  )  const [inline]

Definition at line 270 of file battle_actors.h.

References _evade.

uint32 hoa_battle::private_battle::BattleActor::GetFortitude (  )  const [inline]

Definition at line 261 of file battle_actors.h.

References _fortitude.

uint32 hoa_battle::private_battle::BattleActor::GetHitPoints (  )  const [inline]

Definition at line 243 of file battle_actors.h.

References _hp.

Referenced by hoa_battle::private_battle::BattleCharacterActor::DrawPortrait(), hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), hoa_battle::private_battle::BattleCharacterActor::DrawStatus(), TakeDamage(), and hoa_battle::private_battle::BattleCharacterActor::UpdateGlobalActorStats().

uint32 hoa_battle::private_battle::BattleActor::GetMaxHitPoints (  )  const [inline]

Definition at line 246 of file battle_actors.h.

References _max_hp.

Referenced by hoa_battle::private_battle::BattleCharacterActor::DrawPortrait(), hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), and hoa_battle::private_battle::BattleCharacterActor::DrawStatus().

uint32 hoa_battle::private_battle::BattleActor::GetMaxSkillPoints (  )  const [inline]

Definition at line 252 of file battle_actors.h.

References _max_sp.

Referenced by hoa_battle::private_battle::BattleCharacterActor::DrawStatus().

uint32 hoa_battle::private_battle::BattleActor::GetMetaPhysicalAttack (  )  const [inline]

Definition at line 228 of file battle_actors.h.

References _metaphysical_attack.

uint32 hoa_battle::private_battle::BattleActor::GetMetaPhysicalDefense (  )  const [inline]

Definition at line 234 of file battle_actors.h.

References _metaphysical_defense.

uint32 hoa_battle::private_battle::BattleActor::GetPhysicalAttack (  )  const [inline]

Definition at line 225 of file battle_actors.h.

References _physical_attack.

uint32 hoa_battle::private_battle::BattleActor::GetPhysicalDefense (  )  const [inline]

Definition at line 231 of file battle_actors.h.

References _physical_defense.

uint32 hoa_battle::private_battle::BattleActor::GetProtection (  )  const [inline]

Definition at line 264 of file battle_actors.h.

References _protection.

uint32 hoa_battle::private_battle::BattleActor::GetSkillPoints (  )  const [inline]

Definition at line 249 of file battle_actors.h.

References _sp.

Referenced by hoa_battle::private_battle::ActionWindow::_ConstructActionSelectionList(), hoa_global::GlobalSkill::BattleExecute(), hoa_battle::private_battle::BattleCharacterActor::DrawStatus(), hoa_battle::private_battle::ScriptEvent::RunScript(), and hoa_battle::private_battle::BattleCharacterActor::UpdateGlobalActorStats().

uint32 hoa_battle::private_battle::BattleActor::GetStrength (  )  const [inline]

Definition at line 255 of file battle_actors.h.

References _strength.

float hoa_battle::private_battle::BattleActor::GetTimePortraitLocation (  )  [inline]

Definition at line 147 of file battle_actors.h.

References _time_portrait_location.

Referenced by hoa_battle::private_battle::ScriptEvent::Update().

uint32 hoa_battle::private_battle::BattleActor::GetVigor (  )  const [inline]

Definition at line 258 of file battle_actors.h.

References _vigor.

hoa_system::SystemTimer* hoa_battle::private_battle::BattleActor::GetWaitTime (  )  [inline]

Definition at line 151 of file battle_actors.h.

References _wait_time.

Referenced by hoa_battle::BattleMode::_UpdateCharacterSelection(), hoa_battle::BattleMode::GetIndexOfFirstIdleCharacter(), OnDeath(), OnLife(), and hoa_battle::private_battle::BattleEnemyActor::Update().

float hoa_battle::private_battle::BattleActor::GetXLocation (  )  const [inline]

Definition at line 198 of file battle_actors.h.

References _x_location.

Referenced by hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), and hoa_battle::private_battle::BattleCharacterActor::DrawSprite().

float hoa_battle::private_battle::BattleActor::GetXOrigin (  )  const [inline]

Definition at line 204 of file battle_actors.h.

References _x_origin.

Referenced by hoa_battle::BattleMode::SwapCharacters(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

float hoa_battle::private_battle::BattleActor::GetYLocation (  )  const [inline]

Definition at line 201 of file battle_actors.h.

References _y_location.

Referenced by hoa_battle::_TEMPIsA1Smaller(), hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), and hoa_battle::private_battle::BattleCharacterActor::DrawSprite().

float hoa_battle::private_battle::BattleActor::GetYOrigin (  )  const [inline]

Definition at line 207 of file battle_actors.h.

References _y_origin.

Referenced by hoa_battle::BattleMode::SwapCharacters().

void hoa_battle::private_battle::BattleActor::InitBattleActorStats ( hoa_global::GlobalActor actor  ) 

Definition at line 69 of file battle_actors.cpp.

References CalcMetaPhysicalAttack(), CalcMetaPhysicalDefense(), CalcPhysicalAttack(), CalcPhysicalDefense(), hoa_global::GlobalActor::GetAgility(), hoa_global::GlobalActor::GetEvade(), hoa_global::GlobalActor::GetFortitude(), hoa_global::GlobalActor::GetHitPoints(), hoa_global::GlobalActor::GetMaxHitPoints(), hoa_global::GlobalActor::GetMaxSkillPoints(), hoa_global::GlobalActor::GetProtection(), hoa_global::GlobalActor::GetSkillPoints(), hoa_global::GlobalActor::GetStrength(), hoa_global::GlobalActor::GetVigor(), SetAgility(), SetEvade(), SetFortitude(), SetHitPoints(), SetMaxHitPoints(), SetMaxSkillPoints(), SetProtection(), SetSkillPoints(), SetStrength(), and SetVigor().

Referenced by hoa_battle::BattleMode::_Initialize(), and hoa_battle::BattleMode::AddEnemy().

Here is the call graph for this function:

virtual bool hoa_battle::private_battle::BattleActor::IsAlive (  )  [inline, virtual]

Definition at line 186 of file battle_actors.h.

References _hp.

Referenced by hoa_battle::BattleMode::_UpdateCharacterSelection(), hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), hoa_battle::private_battle::BattleCharacterActor::DrawSprite(), DrawTimePortrait(), hoa_battle::private_battle::ScriptEvent::RunScript(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

virtual bool hoa_battle::private_battle::BattleActor::IsEnemy (  )  [inline, virtual]

Reimplemented in hoa_battle::private_battle::BattleCharacterActor.

Definition at line 190 of file battle_actors.h.

Referenced by hoa_battle::BattleMode::_DrawTimeMeter(), hoa_battle::BattleMode::_UpdateTargetSelection(), and hoa_battle::private_battle::ScriptEvent::RunScript().

bool hoa_battle::private_battle::BattleActor::IsQueuedToPerform (  )  const [inline]

Is the character queued to attack?

Definition at line 132 of file battle_actors.h.

References _is_queued_to_perform.

Referenced by hoa_battle::BattleMode::_UpdateCharacterSelection(), hoa_battle::BattleMode::GetIndexOfFirstIdleCharacter(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

void hoa_battle::private_battle::BattleActor::OnDeath (  )  [virtual]

Definition at line 112 of file battle_actors.cpp.

References GetWaitTime(), and hoa_system::SystemTimer::Reset().

Referenced by TakeDamage().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleActor::OnLife (  )  [virtual]

Definition at line 118 of file battle_actors.cpp.

References GetWaitTime(), and hoa_system::SystemTimer::Run().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleActor::ResetWaitTime (  ) 

Gets a pointer to the GlobalActor.

Definition at line 101 of file battle_actors.cpp.

References _time_portrait_location, _wait_time, hoa_system::SystemTimer::Reset(), and hoa_system::SystemTimer::Run().

Referenced by hoa_battle::BattleMode::SetPerformingScript().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleActor::SetAgility ( uint32  agility  )  [inline]

Definition at line 300 of file battle_actors.h.

References _agility.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetEvade ( float  evade  )  [inline]

Definition at line 303 of file battle_actors.h.

References _evade.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetFortitude ( uint32  fortitude  )  [inline]

Definition at line 294 of file battle_actors.h.

References _fortitude.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetHitPoints ( uint32  hp  )  [inline]

Definition at line 276 of file battle_actors.h.

References _hp, and _max_hp.

Referenced by InitBattleActorStats(), and TakeDamage().

void hoa_battle::private_battle::BattleActor::SetMaxHitPoints ( uint32  max_hp  )  [inline]

Definition at line 279 of file battle_actors.h.

References _max_hp.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetMaxSkillPoints ( uint32  max_sp  )  [inline]

Definition at line 285 of file battle_actors.h.

References _max_sp.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetProtection ( uint32  protection  )  [inline]

Definition at line 297 of file battle_actors.h.

References _protection.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetQueuedToPerform ( bool  QueuedToPerform  )  [inline]

Sets queued to perform.

Definition at line 128 of file battle_actors.h.

References _is_queued_to_perform.

Referenced by hoa_battle::BattleMode::_UpdateAttackPointSelection(), hoa_battle::BattleMode::_UpdateTargetSelection(), hoa_battle::BattleMode::SetPerformingScript(), and hoa_battle::private_battle::BattleEnemyActor::Update().

void hoa_battle::private_battle::BattleActor::SetSkillPoints ( uint32  sp  )  [inline]

Definition at line 282 of file battle_actors.h.

References _max_sp, and _sp.

Referenced by InitBattleActorStats(), and hoa_battle::private_battle::ScriptEvent::RunScript().

void hoa_battle::private_battle::BattleActor::SetStrength ( uint32  strength  )  [inline]

Definition at line 288 of file battle_actors.h.

References _strength.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetTimePortraitLocation ( float  new_val  )  [inline]

Definition at line 143 of file battle_actors.h.

References _time_portrait_location.

Referenced by hoa_battle::private_battle::ScriptEvent::Update().

void hoa_battle::private_battle::BattleActor::SetVigor ( uint32  vigor  )  [inline]

Definition at line 291 of file battle_actors.h.

References _vigor.

Referenced by InitBattleActorStats().

void hoa_battle::private_battle::BattleActor::SetXLocation ( float  x_location  )  [inline]

Definition at line 210 of file battle_actors.h.

References _x_location.

Referenced by hoa_battle::BattleMode::SwapCharacters(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

void hoa_battle::private_battle::BattleActor::SetXOrigin ( float  x_origin  )  [inline]

Definition at line 216 of file battle_actors.h.

References _x_origin.

Referenced by hoa_battle::BattleMode::SwapCharacters().

void hoa_battle::private_battle::BattleActor::SetYLocation ( float  y_location  )  [inline]

Definition at line 213 of file battle_actors.h.

References _y_location.

Referenced by hoa_battle::BattleMode::SwapCharacters().

void hoa_battle::private_battle::BattleActor::SetYOrigin ( float  y_origin  )  [inline]

Definition at line 219 of file battle_actors.h.

References _y_origin.

Referenced by hoa_battle::BattleMode::SwapCharacters().

void hoa_battle::private_battle::BattleActor::TakeDamage ( int32  damage  )  [virtual]

Gives a specific amount of damage for the object

Note:
Must be defined in subclasses

Definition at line 126 of file battle_actors.cpp.

References _damage_dealt, _total_time_damaged, hoa_battle::private_battle::current_battle, GetHitPoints(), OnDeath(), hoa_utils::RandomBoundedInteger(), hoa_battle::BattleMode::RemoveScriptedEventsForActor(), and SetHitPoints().

Here is the call graph for this function:

bool hoa_battle::private_battle::BattleActor::TEMP_IsAttacking (  )  const

Is the monster attacking right now.

Definition at line 157 of file battle_actors.cpp.

References _TEMP_attack_animation_timer, and hoa_system::SystemTimer::IsFinished().

Referenced by hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleActor::TEMP_ResetAttackTimer (  ) 

Definition at line 150 of file battle_actors.cpp.

References _TEMP_attack_animation_timer, hoa_system::SystemTimer::Initialize(), and hoa_system::SystemTimer::Run().

Referenced by hoa_battle::private_battle::ScriptEvent::RunScript().

Here is the call graph for this function:


Member Data Documentation

uint32 hoa_battle::private_battle::BattleActor::_agility [protected]

Definition at line 340 of file battle_actors.h.

Referenced by GetAgility(), and SetAgility().

float hoa_battle::private_battle::BattleActor::_combat_evade [protected]

Definition at line 350 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcEvade(), hoa_battle::private_battle::BattleCharacterActor::CalcEvade(), and GetCombatEvade().

uint32 hoa_battle::private_battle::BattleActor::_damage_dealt [protected]

How much damage was dealt on the last strike.

Definition at line 359 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), hoa_battle::private_battle::BattleCharacterActor::DrawSprite(), and TakeDamage().

float hoa_battle::private_battle::BattleActor::_evade [protected]

Definition at line 341 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcEvade(), hoa_battle::private_battle::BattleCharacterActor::CalcEvade(), GetEvade(), and SetEvade().

uint32 hoa_battle::private_battle::BattleActor::_fortitude [protected]

Definition at line 338 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcPhysicalDefense(), hoa_battle::private_battle::BattleCharacterActor::CalcPhysicalDefense(), GetFortitude(), and SetFortitude().

uint32 hoa_battle::private_battle::BattleActor::_hp [protected]

Definition at line 333 of file battle_actors.h.

Referenced by GetHitPoints(), IsAlive(), and SetHitPoints().

bool hoa_battle::private_battle::BattleActor::_is_queued_to_perform [protected]

Is the character queued to attack?

Definition at line 362 of file battle_actors.h.

Referenced by IsQueuedToPerform(), and SetQueuedToPerform().

uint32 hoa_battle::private_battle::BattleActor::_last_update_time [protected]

The last time the actor was updated.

Definition at line 316 of file battle_actors.h.

uint32 hoa_battle::private_battle::BattleActor::_max_hp [protected]

Definition at line 332 of file battle_actors.h.

Referenced by GetMaxHitPoints(), SetHitPoints(), and SetMaxHitPoints().

uint32 hoa_battle::private_battle::BattleActor::_max_sp [protected]

Definition at line 334 of file battle_actors.h.

Referenced by GetMaxSkillPoints(), SetMaxSkillPoints(), and SetSkillPoints().

uint32 hoa_battle::private_battle::BattleActor::_metaphysical_attack [protected]

Definition at line 347 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcMetaPhysicalAttack(), hoa_battle::private_battle::BattleCharacterActor::CalcMetaPhysicalAttack(), and GetMetaPhysicalAttack().

uint32 hoa_battle::private_battle::BattleActor::_metaphysical_defense [protected]

Definition at line 349 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcMetaPhysicalDefense(), hoa_battle::private_battle::BattleCharacterActor::CalcMetaPhysicalDefense(), and GetMetaPhysicalDefense().

uint32 hoa_battle::private_battle::BattleActor::_physical_attack [protected]

Definition at line 346 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcPhysicalAttack(), hoa_battle::private_battle::BattleCharacterActor::CalcPhysicalAttack(), and GetPhysicalAttack().

uint32 hoa_battle::private_battle::BattleActor::_physical_defense [protected]

Definition at line 348 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcPhysicalDefense(), hoa_battle::private_battle::BattleCharacterActor::CalcPhysicalDefense(), and GetPhysicalDefense().

uint32 hoa_battle::private_battle::BattleActor::_protection [protected]

Definition at line 339 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcMetaPhysicalDefense(), hoa_battle::private_battle::BattleCharacterActor::CalcMetaPhysicalDefense(), GetProtection(), and SetProtection().

uint32 hoa_battle::private_battle::BattleActor::_sp [protected]

Definition at line 335 of file battle_actors.h.

Referenced by GetSkillPoints(), and SetSkillPoints().

uint32 hoa_battle::private_battle::BattleActor::_strength [protected]

Definition at line 336 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcPhysicalAttack(), hoa_battle::private_battle::BattleCharacterActor::CalcPhysicalAttack(), GetStrength(), and SetStrength().

hoa_system::SystemTimer hoa_battle::private_battle::BattleActor::_TEMP_attack_animation_timer [protected]

Timer for the attack animation.

Definition at line 378 of file battle_actors.h.

Referenced by BattleActor(), TEMP_IsAttacking(), and TEMP_ResetAttackTimer().

hoa_video::StillImage hoa_battle::private_battle::BattleActor::_time_meter_portrait [protected]

Portrait for the time meter.

Definition at line 365 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleCharacterActor::BattleCharacterActor(), hoa_battle::private_battle::BattleEnemyActor::BattleEnemyActor(), DrawTimePortrait(), hoa_battle::private_battle::BattleCharacterActor::~BattleCharacterActor(), and hoa_battle::private_battle::BattleEnemyActor::~BattleEnemyActor().

float hoa_battle::private_battle::BattleActor::_time_portrait_location [protected]

The y-value of it's location, since x is fixed.

Definition at line 371 of file battle_actors.h.

Referenced by DrawTimePortrait(), GetTimePortraitLocation(), ResetWaitTime(), SetTimePortraitLocation(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

hoa_video::StillImage hoa_battle::private_battle::BattleActor::_time_portrait_selected [protected]

The image used to highlight time portraits for selected actors.

Definition at line 368 of file battle_actors.h.

Referenced by BattleActor(), DrawTimePortrait(), and ~BattleActor().

uint32 hoa_battle::private_battle::BattleActor::_total_time_damaged [protected]

Variable for tracking time (ms) on how long to show the damage text.

Definition at line 355 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), hoa_battle::private_battle::BattleCharacterActor::DrawSprite(), and TakeDamage().

uint32 hoa_battle::private_battle::BattleActor::_vigor [protected]

Definition at line 337 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleEnemyActor::CalcMetaPhysicalAttack(), hoa_battle::private_battle::BattleCharacterActor::CalcMetaPhysicalAttack(), GetVigor(), and SetVigor().

hoa_system::SystemTimer hoa_battle::private_battle::BattleActor::_wait_time [protected]

Amount of time character spends in the idle phase.

Definition at line 375 of file battle_actors.h.

Referenced by GetWaitTime(), ResetWaitTime(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

float hoa_battle::private_battle::BattleActor::_x_location [protected]

Character's X-coordinate on the screen.

Definition at line 319 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleCharacterActor::BattleCharacterActor(), hoa_battle::private_battle::BattleEnemyActor::BattleEnemyActor(), hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), hoa_battle::private_battle::BattleCharacterActor::DrawSprite(), GetXLocation(), SetXLocation(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

float hoa_battle::private_battle::BattleActor::_x_origin [protected]

Starting X coordinate of the character.

Definition at line 325 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleCharacterActor::BattleCharacterActor(), hoa_battle::private_battle::BattleEnemyActor::BattleEnemyActor(), GetXOrigin(), SetXOrigin(), hoa_battle::private_battle::BattleEnemyActor::Update(), and hoa_battle::private_battle::BattleCharacterActor::Update().

float hoa_battle::private_battle::BattleActor::_y_location [protected]

Character's Y-coordinate on the screen.

Definition at line 322 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleCharacterActor::BattleCharacterActor(), hoa_battle::private_battle::BattleEnemyActor::BattleEnemyActor(), hoa_battle::private_battle::BattleEnemyActor::DrawSprite(), hoa_battle::private_battle::BattleCharacterActor::DrawSprite(), GetYLocation(), and SetYLocation().

float hoa_battle::private_battle::BattleActor::_y_origin [protected]

Starting Y coordinate of the character.

Definition at line 328 of file battle_actors.h.

Referenced by hoa_battle::private_battle::BattleCharacterActor::BattleCharacterActor(), hoa_battle::private_battle::BattleEnemyActor::BattleEnemyActor(), GetYOrigin(), and SetYOrigin().


The documentation for this class was generated from the following files:
Generated on Fri Jul 6 23:13:00 2007 for Hero of Allacrost by  doxygen 1.5.1