#include <C4MaterialList.h>
Public Member Functions | |
| C4MaterialList () | |
| ~C4MaterialList () | |
| void | Default () |
| void | Clear () |
| void | Reset () |
| int32_t | Get (int32_t iMaterial) |
| void | Add (int32_t iMaterial, int32_t iAmount) |
| void | Set (int32_t iMaterial, int32_t iAmount) |
Public Attributes | |
| int32_t | Amount [C4MaxMaterial] |
Definition at line 25 of file C4MaterialList.h.
| C4MaterialList::C4MaterialList | ( | ) |
Definition at line 23 of file C4MaterialList.cpp.
References Default().
| C4MaterialList::~C4MaterialList | ( | ) |
Definition at line 28 of file C4MaterialList.cpp.
References Clear().
| void C4MaterialList::Add | ( | int32_t | iMaterial, |
| int32_t | iAmount | ||
| ) |
| void C4MaterialList::Clear | ( | ) |
Definition at line 38 of file C4MaterialList.cpp.
Referenced by ~C4MaterialList().
| void C4MaterialList::Default | ( | ) |
Definition at line 33 of file C4MaterialList.cpp.
References Reset().
Referenced by C4MaterialList().
| int32_t C4MaterialList::Get | ( | int32_t | iMaterial | ) |
| void C4MaterialList::Reset | ( | ) |
Definition at line 43 of file C4MaterialList.cpp.
References Amount.
Referenced by Default().
| void C4MaterialList::Set | ( | int32_t | iMaterial, |
| int32_t | iAmount | ||
| ) |
Definition at line 49 of file C4MaterialList.cpp.
References Amount, and C4MaxMaterial.
| int32_t C4MaterialList::Amount[C4MaxMaterial] |
Definition at line 31 of file C4MaterialList.h.
Referenced by Add(), C4Landscape::P::BlastMaterial2Objects(), C4Landscape::P::DigMaterial2Objects(), Get(), Reset(), and Set().