hoa_battle::private_battle::BattleEnemyActor Class Reference

Represents the entity for an enemy in the battle. More...

#include <battle_actors.h>

Inheritance diagram for hoa_battle::private_battle::BattleEnemyActor:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BattleEnemyActor (hoa_global::GlobalEnemy enemy, float x_location, float y_location)
virtual void CalcEvade (hoa_global::GlobalAttackPoint *attack_point=NULL)
virtual void CalcMetaPhysicalAttack ()
virtual void CalcMetaPhysicalDefense (hoa_global::GlobalAttackPoint *attack_point=NULL)
virtual void CalcPhysicalAttack ()
 Gives a specific amount of damage for the enemy.
virtual void CalcPhysicalDefense (hoa_global::GlobalAttackPoint *attack_point=NULL)
void DrawSprite ()
 Draws the damage-blended enemy sprite.
virtual void DrawStatus ()
 Draws the enemy's status information.
virtual hoa_global::GlobalEnemyGetActor ()
 Gets a pointer to the GlobalActor.
bool operator< (const BattleEnemyActor &other) const
 Compares the Y-coordinates of the actors, used for sorting the actors up-down when drawing.
void Update ()
 Updates the action status of the enemy.
virtual ~BattleEnemyActor ()

Private Attributes

hoa_global::GlobalEnemy _global_enemy
 Handle to the GlobalEnemy Entity.

Detailed Description

Represents the entity for an enemy in the battle.

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

This class is a wrapper around a GlobalEnemy object.

Definition at line 548 of file battle_actors.h.


Constructor & Destructor Documentation

hoa_battle::private_battle::BattleEnemyActor::BattleEnemyActor ( hoa_global::GlobalEnemy  enemy,
float  x_location,
float  y_location 
)

Definition at line 531 of file battle_actors.cpp.

References _global_enemy, hoa_battle::private_battle::BattleActor::_time_meter_portrait, hoa_battle::private_battle::BattleActor::_x_location, hoa_battle::private_battle::BattleActor::_x_origin, hoa_battle::private_battle::BattleActor::_y_location, hoa_battle::private_battle::BattleActor::_y_origin, hoa_global::GlobalActor::GetFilename(), hoa_video::GameVideo::LoadImage(), hoa_video::StillImage::SetDimensions(), hoa_video::StillImage::SetFilename(), and hoa_video::VideoManager.

Here is the call graph for this function:

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

Definition at line 565 of file battle_actors.cpp.

References hoa_battle::private_battle::BattleActor::_time_meter_portrait, hoa_video::GameVideo::DeleteImage(), and hoa_video::VideoManager.

Here is the call graph for this function:


Member Function Documentation

void hoa_battle::private_battle::BattleEnemyActor::CalcEvade ( hoa_global::GlobalAttackPoint attack_point = NULL  )  [virtual]

Reimplemented from hoa_battle::private_battle::BattleActor.

Definition at line 612 of file battle_actors.cpp.

References hoa_battle::private_battle::BattleActor::_combat_evade, hoa_battle::private_battle::BattleActor::_evade, and hoa_global::GlobalAttackPoint::GetEvadeModifier().

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

Here is the call graph for this function:

void hoa_battle::private_battle::BattleEnemyActor::CalcMetaPhysicalAttack (  )  [virtual]

Reimplemented from hoa_battle::private_battle::BattleActor.

Definition at line 581 of file battle_actors.cpp.

References hoa_battle::private_battle::BattleActor::_metaphysical_attack, hoa_battle::private_battle::BattleActor::_vigor, GetActor(), hoa_global::GlobalWeapon::GetMetaphysicalAttack(), and hoa_global::GlobalActor::GetWeaponEquipped().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleEnemyActor::CalcMetaPhysicalDefense ( hoa_global::GlobalAttackPoint attack_point = NULL  )  [virtual]

Reimplemented from hoa_battle::private_battle::BattleActor.

Definition at line 601 of file battle_actors.cpp.

References hoa_battle::private_battle::BattleActor::_metaphysical_defense, hoa_battle::private_battle::BattleActor::_protection, and hoa_global::GlobalAttackPoint::GetProtectionModifier().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleEnemyActor::CalcPhysicalAttack (  )  [virtual]

Gives a specific amount of damage for the enemy.

Reimplemented from hoa_battle::private_battle::BattleActor.

Definition at line 572 of file battle_actors.cpp.

References hoa_battle::private_battle::BattleActor::_physical_attack, hoa_battle::private_battle::BattleActor::_strength, GetActor(), hoa_global::GlobalWeapon::GetPhysicalAttack(), and hoa_global::GlobalActor::GetWeaponEquipped().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleEnemyActor::CalcPhysicalDefense ( hoa_global::GlobalAttackPoint attack_point = NULL  )  [virtual]

Reimplemented from hoa_battle::private_battle::BattleActor.

Definition at line 590 of file battle_actors.cpp.

References hoa_battle::private_battle::BattleActor::_fortitude, hoa_battle::private_battle::BattleActor::_physical_defense, and hoa_global::GlobalAttackPoint::GetFortitudeModifier().

Here is the call graph for this function:

void hoa_battle::private_battle::BattleEnemyActor::DrawSprite (  ) 

Draws the damage-blended enemy sprite.

Definition at line 703 of file battle_actors.cpp.

References hoa_battle::BattleMode::_actor_selection_image, hoa_battle::BattleMode::_attack_point_indicator, hoa_battle::BattleMode::_cursor_state, hoa_battle::private_battle::BattleActor::_damage_dealt, hoa_battle::BattleMode::_selected_attack_point, hoa_battle::BattleMode::_selected_target, hoa_battle::private_battle::BattleActor::_total_time_damaged, hoa_battle::private_battle::BattleActor::_x_location, hoa_battle::private_battle::BattleActor::_y_location, hoa_battle::private_battle::current_battle, hoa_battle::private_battle::CURSOR_SELECT_ATTACK_POINT, hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::DrawText(), GetActor(), hoa_global::GlobalActor::GetAttackPoints(), hoa_global::GlobalEnemy::GetBattleSpriteFrames(), hoa_battle::private_battle::BattleActor::GetHitPoints(), hoa_battle::private_battle::BattleActor::GetMaxHitPoints(), hoa_system::GameSystem::GetUpdateTime(), hoa_battle::private_battle::BattleActor::GetXLocation(), hoa_battle::private_battle::BattleActor::GetYLocation(), hoa_battle::private_battle::BattleActor::IsAlive(), hoa_video::GameVideo::Move(), hoa_utils::NumberToString(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::GameVideo::SetFont(), hoa_video::GameVideo::SetTextColor(), hoa_system::SystemManager, hoa_video::VIDEO_BLEND, hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_BOTTOM, hoa_video::VIDEO_Y_CENTER, and hoa_video::VideoManager.

Here is the call graph for this function:

void hoa_battle::private_battle::BattleEnemyActor::DrawStatus (  )  [virtual]

Draws the enemy's status information.

Reimplemented from hoa_battle::private_battle::BattleActor.

Definition at line 793 of file battle_actors.cpp.

References hoa_battle::BattleMode::_cursor_state, hoa_battle::BattleMode::_selected_attack_point, hoa_battle::private_battle::current_battle, hoa_battle::private_battle::CURSOR_SELECT_ATTACK_POINT, hoa_video::GameVideo::DrawText(), GetActor(), hoa_global::GlobalActor::GetAttackPoints(), hoa_utils::MakeUnicodeString(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::GameVideo::SetTextColor(), hoa_video::VIDEO_BLEND, hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_Y_BOTTOM, and hoa_video::VideoManager.

Here is the call graph for this function:

virtual hoa_global::GlobalEnemy* hoa_battle::private_battle::BattleEnemyActor::GetActor (  )  [inline, virtual]

Gets a pointer to the GlobalActor.

Definition at line 621 of file battle_actors.h.

References _global_enemy.

Referenced by hoa_battle::BattleMode::_TallyRewards(), hoa_battle::_TEMPIsA1Smaller(), hoa_battle::BattleMode::_UpdateAttackPointSelection(), CalcMetaPhysicalAttack(), CalcPhysicalAttack(), DrawSprite(), DrawStatus(), and Update().

bool hoa_battle::private_battle::BattleEnemyActor::operator< ( const BattleEnemyActor other  )  const

Compares the Y-coordinates of the actors, used for sorting the actors up-down when drawing.

Parameters:
new_val new value for the location

Definition at line 639 of file battle_actors.cpp.

void hoa_battle::private_battle::BattleEnemyActor::Update (  ) 

Updates the action status of the enemy.

Definition at line 648 of file battle_actors.cpp.

References hoa_battle::private_battle::BattleActor::_time_portrait_location, hoa_battle::private_battle::BattleActor::_wait_time, hoa_battle::private_battle::BattleActor::_x_location, hoa_battle::private_battle::BattleActor::_x_origin, hoa_battle::BattleMode::AddScriptEventToQueue(), hoa_battle::private_battle::current_battle, GetActor(), hoa_system::SystemTimer::GetDuration(), hoa_battle::BattleMode::GetPlayerCharacterAt(), hoa_global::GlobalActor::GetSkills(), hoa_system::GameSystem::GetUpdateTime(), hoa_battle::private_battle::BattleActor::GetWaitTime(), hoa_battle::private_battle::BattleActor::GetXOrigin(), hoa_battle::private_battle::BattleActor::IsAlive(), hoa_system::SystemTimer::IsFinished(), hoa_battle::private_battle::BattleActor::IsQueuedToPerform(), hoa_system::SystemTimer::IsRunning(), hoa_battle::private_battle::BattleActor::SetQueuedToPerform(), hoa_battle::private_battle::BattleActor::SetXLocation(), hoa_system::SystemManager, and hoa_battle::private_battle::BattleActor::TEMP_IsAttacking().

Here is the call graph for this function:


Member Data Documentation

hoa_global::GlobalEnemy hoa_battle::private_battle::BattleEnemyActor::_global_enemy [private]

Handle to the GlobalEnemy Entity.

Definition at line 645 of file battle_actors.h.

Referenced by BattleEnemyActor(), and GetActor().


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