|
byte & | _trapType = _data[1] |
|
byte & | _container = _data[2] |
|
byte *const | _items = &_data[3] |
|
◆ clear()
void MM::MM1::Treasure::clear |
( |
| ) |
|
◆ clear0()
void MM::MM1::Treasure::clear0 |
( |
| ) |
|
Clears everything except byte 0
◆ present()
bool MM::MM1::Treasure::present |
( |
| ) |
const |
Returns true if any treasure has been assigned
◆ hasItems()
bool MM::MM1::Treasure::hasItems |
( |
| ) |
const |
Returns true if any items are present
◆ synchronize()
Synchronize savegame data
◆ getGold()
uint16 MM::MM1::Treasure::getGold |
( |
| ) |
const |
|
inline |
Return the gold value for the treasure
◆ setGold()
void MM::MM1::Treasure::setGold |
( |
uint16 |
amount | ) |
|
|
inline |
Sets the gold value for the treasure
◆ getGems()
byte MM::MM1::Treasure::getGems |
( |
| ) |
const |
|
inline |
◆ setGems()
void MM::MM1::Treasure::setGems |
( |
byte |
amount | ) |
|
|
inline |
◆ removeItem()
byte MM::MM1::Treasure::removeItem |
( |
| ) |
|
Get any item, and remove it from the treasure
The documentation for this class was generated from the following file: