WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
Public Member Functions | List of all members
LocationRequestManager Class Reference

Public Member Functions

 LocationRequestManager ()
 
void add (HasMoney *requester, enumLocation type, int value, bool deleteDuplicates=true)
 
void addTreasuryRequest (Character *requester, Stockpile *money, Stockpile *stockpile, enumLocation type, int value)
 
void removeAll (HasMoney *requester, enumLocation type)
 
std::optional< LocationRequestpullMostValuableRequest (bool returnZeroValues)
 
double getAverageValue (enumLocation type) const
 
int getTotalValue () const
 
int getNumContracts () const
 
bool empty () const
 
int size ()
 
void print ()
 

Constructor & Destructor Documentation

◆ LocationRequestManager()

LocationRequestManager::LocationRequestManager ( )
inline

Member Function Documentation

◆ add()

void LocationRequestManager::add ( HasMoney requester,
enumLocation  type,
int  value,
bool  deleteDuplicates = true 
)
inline

◆ addTreasuryRequest()

void LocationRequestManager::addTreasuryRequest ( Character requester,
Stockpile money,
Stockpile stockpile,
enumLocation  type,
int  value 
)
inline

◆ empty()

bool LocationRequestManager::empty ( ) const
inline

◆ getAverageValue()

double LocationRequestManager::getAverageValue ( enumLocation  type) const
inline

◆ getNumContracts()

int LocationRequestManager::getNumContracts ( ) const
inline

◆ getTotalValue()

int LocationRequestManager::getTotalValue ( ) const
inline

◆ print()

void LocationRequestManager::print ( )
inline

◆ pullMostValuableRequest()

std::optional<LocationRequest> LocationRequestManager::pullMostValuableRequest ( bool  returnZeroValues)
inline

◆ removeAll()

void LocationRequestManager::removeAll ( HasMoney requester,
enumLocation  type 
)
inline

◆ size()

int LocationRequestManager::size ( )
inline

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