OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Chest Struct Reference

#include <Chest.h>

Public Member Functions

bool Initialized () const
 
void SetInitialized (bool b)
 
bool Trapped () const
 

Static Public Member Functions

static bool CanPlaceItemAt (int test_cell_position, ItemId item_id, int uChestID)
 
static int FindFreeItemSlot (int uChestID)
 
static int PutItemInChest (int a1, ItemGen *a2, int uChestID)
 
static void PlaceItemAt (unsigned int put_cell_pos, unsigned int uItemIdx, int uChestID)
 
static void PlaceItems (int uChestID)
 
static bool open (int uChestID, Pid objectPid)
 
static void toggleFlag (int uChestID, ChestFlag uFlag, bool bValue)
 
static bool ChestUI_WritePointedObjectStatusString ()
 
static void OnChestLeftClick ()
 
static void GrabItem (bool all=false)
 

Public Attributes

uint16_t uChestBitmapID = 0
 
ChestFlags uFlags
 
std::array< ItemGen, 140 > igChestItems
 
std::array< int16_t, 140 > pInventoryIndices = {{}}
 
std::optional< Vec3fposition
 

Member Function Documentation

◆ CanPlaceItemAt()

bool Chest::CanPlaceItemAt ( int  test_cell_position,
ItemId  item_id,
int  uChestID 
)
static

◆ ChestUI_WritePointedObjectStatusString()

bool Chest::ChestUI_WritePointedObjectStatusString ( )
static

◆ FindFreeItemSlot()

int Chest::FindFreeItemSlot ( int  uChestID)
static

◆ GrabItem()

void Chest::GrabItem ( bool  all = false)
static

◆ Initialized()

bool Chest::Initialized ( ) const
inline

◆ OnChestLeftClick()

void Chest::OnChestLeftClick ( )
static

◆ open()

bool Chest::open ( int  uChestID,
Pid  objectPid 
)
static

◆ PlaceItemAt()

void Chest::PlaceItemAt ( unsigned int  put_cell_pos,
unsigned int  uItemIdx,
int  uChestID 
)
static

◆ PlaceItems()

void Chest::PlaceItems ( int  uChestID)
static

◆ PutItemInChest()

int Chest::PutItemInChest ( int  a1,
ItemGen a2,
int  uChestID 
)
static

◆ SetInitialized()

void Chest::SetInitialized ( bool  b)
inline

◆ toggleFlag()

void Chest::toggleFlag ( int  uChestID,
ChestFlag  uFlag,
bool  bValue 
)
static

◆ Trapped()

bool Chest::Trapped ( ) const
inline

Member Data Documentation

◆ igChestItems

std::array<ItemGen, 140> Chest::igChestItems

◆ pInventoryIndices

std::array<int16_t, 140> Chest::pInventoryIndices = {{}}

◆ position

std::optional<Vec3f> Chest::position

◆ uChestBitmapID

uint16_t Chest::uChestBitmapID = 0

◆ uFlags

ChestFlags Chest::uFlags

The documentation for this struct was generated from the following files: