CommonLibVR
RE::CombatInventoryItem Class Referenceabstract

#include <CombatInventoryItem.h>

Inheritance diagram for RE::CombatInventoryItem:
RE::CombatObject RE::NiRefObject RE::CombatInventoryItemMagic RE::CombatInventoryItemMagicT< InventoryItem, MagicCaster > RE::CombatInventoryItemPotion RE::CombatInventoryItemScroll RE::CombatInventoryItemShout RE::CombatInventoryItemStaff

Public Types

enum class  TYPE {
  kNone = 0 , kMelee , kRanged , kShield ,
  kOneHandedBlock = kShield , kMagic , kShout , kStaff ,
  kPotion , kScroll , kTorch
}
 
enum class  CATEGORY { kTotal = 7 }
 

Public Member Functions

 ~CombatInventoryItem () override
 
void SaveGame (BGSSaveGameBuffer *a_buf) override
 
void LoadGame (BGSLoadGameBuffer *a_buf) override
 
virtual float GetMinRange ()
 
virtual float GetMaxRange ()
 
virtual float GetOptimalRange ()
 
virtual float GetEquipRange ()
 
virtual TYPE GetType ()
 
virtual TYPE GetEquipType (BGSEquipSlot a_slot)
 
virtual CATEGORY GetCategory ()=0
 
virtual float CalculateScore (CombatController *a_controller)=0
 
virtual CombatInventoryItemClone ()=0
 
virtual bool CheckBusy (CombatController *a_controller)
 
virtual bool CheckShouldEquip (CombatController *a_controller)
 
virtual bool GetResource (CombatInventoryItemResource &a_resource)
 
virtual void Equip (CombatController *a_controller)
 
virtual void Unequip (CombatController *a_controller)
 
virtual bool IsValid ()
 
virtual void GetDescription (const char *a_dest, std::uint32_t a_size)
 
- Public Member Functions inherited from RE::CombatObject
 ~CombatObject () override
 
virtual std::uint32_t GetObjectType ()=0
 
- Public Member Functions inherited from RE::NiRefObject
 NiRefObject ()
 
virtual ~NiRefObject ()
 
virtual void DeleteThis ()
 
void IncRefCount ()
 
void DecRefCount ()
 
constexpr std::uint32_t GetRefCount () const noexcept
 
 TES_HEAP_REDEFINE_NEW ()
 

Public Attributes

TESFormitem
 
float itemScore
 
std::uint32_t unk1C
 
CombatInventoryItemSlot itemSlot
 
- Public Attributes inherited from RE::NiRefObject
volatile std::uint32_t _refCount { 0 }
 
std::uint32_t _pad0C { 0 }
 

Static Public Attributes

static constexpr auto RTTI = RTTI_CombatInventoryItem
 
static constexpr auto VTABLE = VTABLE_CombatInventoryItem
 
- Static Public Attributes inherited from RE::CombatObject
static constexpr auto RTTI = RTTI_CombatObject
 
static constexpr auto VTABLE = VTABLE_CombatObject
 
- Static Public Attributes inherited from RE::NiRefObject
static constexpr auto RTTI = RTTI_NiRefObject
 
static constexpr auto VTABLE = VTABLE_NiRefObject
 

Additional Inherited Members

- Static Public Member Functions inherited from RE::NiRefObject
static volatile std::uint32_t * GetTotalObjectCount ()
 

Member Enumeration Documentation

◆ CATEGORY

Enumerator
kTotal 

◆ TYPE

Enumerator
kNone 
kMelee 
kRanged 
kShield 
kOneHandedBlock 
kMagic 
kShout 
kStaff 
kPotion 
kScroll 
kTorch 

Constructor & Destructor Documentation

◆ ~CombatInventoryItem()

RE::CombatInventoryItem::~CombatInventoryItem ( )
override

Member Function Documentation

◆ CalculateScore()

virtual float RE::CombatInventoryItem::CalculateScore ( CombatController a_controller)
pure virtual

◆ CheckBusy()

virtual bool RE::CombatInventoryItem::CheckBusy ( CombatController a_controller)
virtual

◆ CheckShouldEquip()

virtual bool RE::CombatInventoryItem::CheckShouldEquip ( CombatController a_controller)
virtual

◆ Clone()

virtual CombatInventoryItem* RE::CombatInventoryItem::Clone ( )
pure virtual

◆ Equip()

virtual void RE::CombatInventoryItem::Equip ( CombatController a_controller)
virtual

◆ GetCategory()

virtual CATEGORY RE::CombatInventoryItem::GetCategory ( )
pure virtual

◆ GetDescription()

virtual void RE::CombatInventoryItem::GetDescription ( const char *  a_dest,
std::uint32_t  a_size 
)
virtual

◆ GetEquipRange()

virtual float RE::CombatInventoryItem::GetEquipRange ( )
virtual

Reimplemented in RE::CombatInventoryItemMagic.

◆ GetEquipType()

virtual TYPE RE::CombatInventoryItem::GetEquipType ( BGSEquipSlot  a_slot)
virtual

Reimplemented in RE::CombatInventoryItemMagic.

◆ GetMaxRange()

virtual float RE::CombatInventoryItem::GetMaxRange ( )
virtual

Reimplemented in RE::CombatInventoryItemMagic.

◆ GetMinRange()

virtual float RE::CombatInventoryItem::GetMinRange ( )
virtual

Reimplemented in RE::CombatInventoryItemMagic.

◆ GetOptimalRange()

virtual float RE::CombatInventoryItem::GetOptimalRange ( )
virtual

Reimplemented in RE::CombatInventoryItemMagic.

◆ GetResource()

virtual bool RE::CombatInventoryItem::GetResource ( CombatInventoryItemResource a_resource)
virtual

Reimplemented in RE::CombatInventoryItemMagic.

◆ GetType()

◆ IsValid()

virtual bool RE::CombatInventoryItem::IsValid ( )
virtual

Reimplemented in RE::CombatInventoryItemMagic.

◆ LoadGame()

void RE::CombatInventoryItem::LoadGame ( BGSLoadGameBuffer a_buf)
overridevirtual

Reimplemented from RE::CombatObject.

Reimplemented in RE::CombatInventoryItemMagic.

◆ SaveGame()

void RE::CombatInventoryItem::SaveGame ( BGSSaveGameBuffer a_buf)
overridevirtual

Reimplemented from RE::CombatObject.

Reimplemented in RE::CombatInventoryItemMagic.

◆ Unequip()

virtual void RE::CombatInventoryItem::Unequip ( CombatController a_controller)
virtual

Member Data Documentation

◆ item

TESForm* RE::CombatInventoryItem::item

◆ itemScore

float RE::CombatInventoryItem::itemScore

◆ itemSlot

CombatInventoryItemSlot RE::CombatInventoryItem::itemSlot

◆ RTTI

constexpr auto RE::CombatInventoryItem::RTTI = RTTI_CombatInventoryItem
inlinestaticconstexpr

◆ unk1C

std::uint32_t RE::CombatInventoryItem::unk1C

◆ VTABLE

constexpr auto RE::CombatInventoryItem::VTABLE = VTABLE_CombatInventoryItem
inlinestaticconstexpr

The documentation for this class was generated from the following file: