| DtSimResourceList::DtSimResourceList |
( |
int |
bin = 0 | ) |
|
| virtual DtSimResourceList::~DtSimResourceList |
( |
| ) |
|
|
virtual |
Adds the specified resource. If the resource already exists, add the amount to the amount already there.
| virtual bool DtSimResourceList::removeResource |
( |
const DtEntityType & |
| ) |
|
|
virtual |
Removes the specified resource from this list.
| virtual DtSimResource* DtSimResourceList::lookupResource |
( |
const DtEntityType & |
resourceName | ) |
const |
|
virtual |
| virtual std::vector<DtSimResource*> DtSimResourceList::resources |
( |
const std::vector< DtEntityType > & |
= std::vector< DtEntityType >() | ) |
const |
|
virtual |
| virtual void DtSimResourceList::clear |
( |
| ) |
|
|
virtual |
Clears out all resources.
Adds in new resources that don't exist in this list and increases the value of existing resources. Will take the max of the current resource full amount and the supplied full amount. If the total would be > than the new full amount, caps at new full amount.
| virtual void DtSimResourceList::restoreResources |
( |
| ) |
|
|
virtual |
Calls to each resource to restore itsef.
| virtual std::list<DtEntityType> DtSimResourceList::getResourceTypes |
( |
| ) |
const |
|
virtual |
| virtual std::list<DtEntityType> DtSimResourceList::getResourceTypes |
( |
const std::vector< DtEntityType > & |
types, |
|
|
double |
greaterThanAmount = 0 |
|
) |
| const |
|
virtual |
The assignment operator will make a unique copy of the resources, not share the pointer of the original.
| int DtSimResourceList::bin |
( |
| ) |
const |
|
inline |
The bin should be a unique number amongst other resource lists to identify this list (and the resources within) from a similar resource in another list managed by the DtSimObjectManager.
| int DtSimResourceList::myBin = 0 |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-2-branch/include/vrfutil/simResourceList.h