#include <global_objects.h>
Inheritance diagram for hoa_global::GlobalWeapon:


Public Member Functions | |
| uint32 | GetMetaphysicalAttack () const |
| GLOBAL_OBJECT | GetObjectType () const |
| Purely virtual function used to distinguish between object types. | |
| uint32 | GetPhysicalAttack () const |
| uint32 | GetUsableBy () const |
| GlobalWeapon (uint32 id, uint32 count=1) | |
| ~GlobalWeapon () | |
Private Attributes | |
| uint32 | _metaphysical_attack |
| The amount of metaphysical damage that the weapon causes. | |
| uint32 | _physical_attack |
| The amount of physical damage that the weapon causes. | |
| uint32 | _usable_by |
| A bit-mask that determines which characters can use or equip the object See the Game Character ID constants in global_actors.h for more information. | |
****************************************************************************
It should be fairly obvious, but not all weapons can be equipped by all characters.
Definition at line 258 of file global_objects.h.
Definition at line 184 of file global_objects.cpp.
References hoa_global::GlobalObject::_description, hoa_global::GlobalObject::_icon_image, hoa_global::GlobalObject::_id, _metaphysical_attack, hoa_global::GlobalObject::_name, _physical_attack, hoa_global::GlobalObject::_price, _usable_by, hoa_global::GameGlobal::_weapons_script, hoa_script::ReadScriptDescriptor::CloseTable(), hoa_script::ReadScriptDescriptor::DoesTableExist(), hoa_script::ScriptDescriptor::GetErrorMessages(), hoa_global::GLOBAL_DEBUG, hoa_global::GlobalManager, hoa_script::ScriptDescriptor::IsErrorDetected(), hoa_video::ImageDescriptor::Load(), hoa_utils::MakeUnicodeString(), hoa_global::private_global::MAX_WEAPON_ID, hoa_script::ReadScriptDescriptor::OpenTable(), hoa_script::ReadScriptDescriptor::ReadString(), hoa_script::ReadScriptDescriptor::ReadUInt(), and hoa_video::StillImage::SetFilename().
Here is the call graph for this function:

| hoa_global::GlobalWeapon::~GlobalWeapon | ( | ) | [inline] |
Definition at line 262 of file global_objects.h.
| uint32 hoa_global::GlobalWeapon::GetMetaphysicalAttack | ( | ) | const [inline] |
Definition at line 271 of file global_objects.h.
References _metaphysical_attack.
Referenced by hoa_global::GlobalActor::_CalculateAttackRatings(), hoa_menu::MenuMode::_DrawBottomMenu(), hoa_battle::private_battle::BattleEnemyActor::CalcMetaPhysicalAttack(), and hoa_battle::private_battle::BattleCharacterActor::CalcMetaPhysicalAttack().
| GLOBAL_OBJECT hoa_global::GlobalWeapon::GetObjectType | ( | ) | const [inline, virtual] |
Purely virtual function used to distinguish between object types.
Implements hoa_global::GlobalObject.
Definition at line 265 of file global_objects.h.
References hoa_global::GLOBAL_OBJECT_WEAPON.
| uint32 hoa_global::GlobalWeapon::GetPhysicalAttack | ( | ) | const [inline] |
Definition at line 268 of file global_objects.h.
References _physical_attack.
Referenced by hoa_global::GlobalActor::_CalculateAttackRatings(), hoa_menu::MenuMode::_DrawBottomMenu(), hoa_battle::private_battle::BattleEnemyActor::CalcPhysicalAttack(), and hoa_battle::private_battle::BattleCharacterActor::CalcPhysicalAttack().
| uint32 hoa_global::GlobalWeapon::GetUsableBy | ( | ) | const [inline] |
The amount of metaphysical damage that the weapon causes.
Definition at line 282 of file global_objects.h.
Referenced by GetMetaphysicalAttack(), and GlobalWeapon().
The amount of physical damage that the weapon causes.
Definition at line 279 of file global_objects.h.
Referenced by GetPhysicalAttack(), and GlobalWeapon().
uint32 hoa_global::GlobalWeapon::_usable_by [private] |
A bit-mask that determines which characters can use or equip the object See the Game Character ID constants in global_actors.h for more information.
Definition at line 287 of file global_objects.h.
Referenced by GetUsableBy(), and GlobalWeapon().
1.5.1