#include <battle_actors.h>
Inheritance diagram for hoa_battle::private_battle::BattleCharacterActor:


Public Member Functions | |
| BattleCharacterActor (hoa_global::GlobalCharacter *character, 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 () |
| virtual void | CalcPhysicalDefense (hoa_global::GlobalAttackPoint *attack_point=NULL) |
| void | DrawPortrait () |
| Draws the character's damage-blended face portrait. | |
| void | DrawSprite () |
| Draws the character's current sprite animation frame. | |
| virtual void | DrawStatus () |
| Draws the character's status information. | |
| hoa_global::GlobalCharacter * | GetActor () |
| virtual bool | IsEnemy () |
| void | Update () |
| Updates the state of the character. Must be called every frame! | |
| virtual void | UpdateGlobalActorStats () |
| virtual | ~BattleCharacterActor () |
Private Attributes | |
| hoa_global::GlobalCharacter * | _global_character |
| A Pointer to the 'real' GlobalCharacter. TODO: This is very bad design and probably should be fixed... | |
| hoa_video::StillImage | _status_bar_cover_image |
| Image of the cover of the bottom menu shrinking bar. | |
| hoa_video::StillImage | _status_menu_image |
| Image of the menu status. | |
****************************************************************************
Definition at line 388 of file battle_actors.h.
| hoa_battle::private_battle::BattleCharacterActor::BattleCharacterActor | ( | hoa_global::GlobalCharacter * | character, | |
| float | x_location, | |||
| float | y_location | |||
| ) |
Definition at line 165 of file battle_actors.cpp.
References _status_bar_cover_image, _status_menu_image, 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::BattleCharacterActor::~BattleCharacterActor | ( | ) | [virtual] |
Definition at line 209 of file battle_actors.cpp.
References _status_bar_cover_image, _status_menu_image, hoa_battle::private_battle::BattleActor::_time_meter_portrait, hoa_video::GameVideo::DeleteImage(), and hoa_video::VideoManager.
Here is the call graph for this function:

| void hoa_battle::private_battle::BattleCharacterActor::CalcEvade | ( | hoa_global::GlobalAttackPoint * | attack_point = NULL |
) | [virtual] |
Reimplemented from hoa_battle::private_battle::BattleActor.
Definition at line 304 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::BattleCharacterActor::CalcMetaPhysicalAttack | ( | ) | [virtual] |
Reimplemented from hoa_battle::private_battle::BattleActor.
Definition at line 260 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::BattleCharacterActor::CalcMetaPhysicalDefense | ( | hoa_global::GlobalAttackPoint * | attack_point = NULL |
) | [virtual] |
Reimplemented from hoa_battle::private_battle::BattleActor.
Definition at line 286 of file battle_actors.cpp.
References hoa_battle::private_battle::BattleActor::_metaphysical_defense, hoa_battle::private_battle::BattleActor::_protection, GetActor(), hoa_global::GlobalActor::GetArmorEquipped(), and hoa_global::GlobalAttackPoint::GetProtectionModifier().
Referenced by hoa_battle::private_battle::ScriptEvent::RunScript().
Here is the call graph for this function:

| void hoa_battle::private_battle::BattleCharacterActor::CalcPhysicalAttack | ( | ) | [virtual] |
Reimplemented from hoa_battle::private_battle::BattleActor.
Definition at line 251 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::BattleCharacterActor::CalcPhysicalDefense | ( | hoa_global::GlobalAttackPoint * | attack_point = NULL |
) | [virtual] |
Reimplemented from hoa_battle::private_battle::BattleActor.
Definition at line 269 of file battle_actors.cpp.
References hoa_battle::private_battle::BattleActor::_fortitude, hoa_battle::private_battle::BattleActor::_physical_defense, GetActor(), hoa_global::GlobalActor::GetArmorEquipped(), and hoa_global::GlobalAttackPoint::GetFortitudeModifier().
Referenced by hoa_battle::private_battle::ScriptEvent::RunScript().
Here is the call graph for this function:

| void hoa_battle::private_battle::BattleCharacterActor::DrawPortrait | ( | ) |
Draws the character's damage-blended face portrait.
Definition at line 362 of file battle_actors.cpp.
References hoa_video::GameVideo::DrawImage(), GetActor(), hoa_global::GlobalCharacter::GetBattlePortraits(), hoa_battle::private_battle::BattleActor::GetHitPoints(), hoa_battle::private_battle::BattleActor::GetMaxHitPoints(), hoa_video::GameVideo::Move(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::VIDEO_BLEND, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_BOTTOM, and hoa_video::VideoManager.
Referenced by hoa_battle::BattleMode::_DrawBottomMenu().
Here is the call graph for this function:

| void hoa_battle::private_battle::BattleCharacterActor::DrawSprite | ( | ) |
Draws the character's current sprite animation frame.
Definition at line 321 of file battle_actors.cpp.
References hoa_battle::BattleMode::_actor_selection_image, hoa_battle::BattleMode::_cursor_state, hoa_battle::private_battle::BattleActor::_damage_dealt, hoa_battle::BattleMode::_selected_character, 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_IDLE, hoa_video::ImageDescriptor::Draw(), hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::DrawText(), GetActor(), 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_global::GlobalCharacter::RetrieveBattleAnimation(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::GameVideo::SetFont(), hoa_video::GameVideo::SetTextColor(), hoa_system::SystemManager, hoa_video::VIDEO_BLEND, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_BOTTOM, and hoa_video::VideoManager.
Here is the call graph for this function:

| void hoa_battle::private_battle::BattleCharacterActor::DrawStatus | ( | ) | [virtual] |
Draws the character's status information.
Reimplemented from hoa_battle::private_battle::BattleActor.
Definition at line 412 of file battle_actors.cpp.
References hoa_battle::BattleMode::_character_actors, _status_bar_cover_image, _status_menu_image, hoa_battle::private_battle::current_battle, hoa_video::GameVideo::DrawImage(), hoa_video::GameVideo::DrawRectangle(), hoa_video::GameVideo::DrawText(), GetActor(), hoa_battle::private_battle::BattleActor::GetHitPoints(), hoa_battle::private_battle::BattleActor::GetMaxHitPoints(), hoa_battle::private_battle::BattleActor::GetMaxSkillPoints(), hoa_battle::private_battle::BattleActor::GetSkillPoints(), hoa_input::InputManager, hoa_video::GameVideo::Move(), hoa_video::GameVideo::MoveRelative(), hoa_utils::NumberToString(), hoa_video::GameVideo::SetDrawFlags(), hoa_video::GameVideo::SetTextColor(), hoa_input::GameInput::SwapState(), hoa_video::VIDEO_BLEND, hoa_video::VIDEO_BLEND_ADD, hoa_video::VIDEO_NO_BLEND, hoa_video::VIDEO_X_CENTER, hoa_video::VIDEO_X_LEFT, hoa_video::VIDEO_Y_BOTTOM, and hoa_video::VideoManager.
Here is the call graph for this function:

| hoa_global::GlobalCharacter* hoa_battle::private_battle::BattleCharacterActor::GetActor | ( | ) | [inline] |
Definition at line 468 of file battle_actors.h.
References _global_character.
Referenced by hoa_battle::private_battle::ActionWindow::_ConstructActionSelectionList(), CalcMetaPhysicalAttack(), CalcMetaPhysicalDefense(), CalcPhysicalAttack(), CalcPhysicalDefense(), DrawPortrait(), DrawSprite(), DrawStatus(), hoa_battle::BattleMode::GetIndexOfFirstIdleCharacter(), hoa_battle::private_battle::ActionWindow::Initialize(), Update(), and UpdateGlobalActorStats().
| virtual bool hoa_battle::private_battle::BattleCharacterActor::IsEnemy | ( | ) | [inline, virtual] |
Reimplemented from hoa_battle::private_battle::BattleActor.
Definition at line 405 of file battle_actors.h.
| void hoa_battle::private_battle::BattleCharacterActor::Update | ( | ) |
Updates the state of the character. Must be called every frame!
Definition at line 228 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, GetActor(), hoa_system::SystemTimer::GetDuration(), hoa_system::GameSystem::GetUpdateTime(), 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_global::GlobalCharacter::RetrieveBattleAnimation(), hoa_battle::private_battle::BattleActor::SetXLocation(), hoa_system::SystemManager, hoa_battle::private_battle::BattleActor::TEMP_IsAttacking(), and hoa_video::AnimatedImage::Update().
Here is the call graph for this function:

| void hoa_battle::private_battle::BattleCharacterActor::UpdateGlobalActorStats | ( | ) | [virtual] |
Definition at line 522 of file battle_actors.cpp.
References GetActor(), hoa_battle::private_battle::BattleActor::GetHitPoints(), hoa_battle::private_battle::BattleActor::GetSkillPoints(), hoa_global::GlobalActor::SetHitPoints(), and hoa_global::GlobalActor::SetSkillPoints().
Here is the call graph for this function:

hoa_global::GlobalCharacter* hoa_battle::private_battle::BattleCharacterActor::_global_character [private] |
A Pointer to the 'real' GlobalCharacter. TODO: This is very bad design and probably should be fixed...
Definition at line 493 of file battle_actors.h.
Referenced by GetActor().
hoa_video::StillImage hoa_battle::private_battle::BattleCharacterActor::_status_bar_cover_image [private] |
Image of the cover of the bottom menu shrinking bar.
Definition at line 525 of file battle_actors.h.
Referenced by BattleCharacterActor(), DrawStatus(), and ~BattleCharacterActor().
hoa_video::StillImage hoa_battle::private_battle::BattleCharacterActor::_status_menu_image [private] |
Image of the menu status.
Definition at line 528 of file battle_actors.h.
Referenced by BattleCharacterActor(), DrawStatus(), and ~BattleCharacterActor().
1.5.1