#include <extractionskills.h>
Public Methods | |
| cResources (UI32 areawidth=10, UI32 areaheight=10) | |
| ~cResources () | |
| void | setDimArea (UI32 areawidth, UI32 areaheight) |
| P_RESOURCE | getResource (Location location) |
| void | checkResource (Location location, P_RESOURCE &res) |
| void | decreaseResource (Location location, P_RESOURCE res=NULL) |
| bool | thereAreSomething (P_RESOURCE res) |
| void | checkAll () |
Public Attributes | |
| UI32 | n |
| number of resource max | |
| TIMERVAL | time |
| TIMERVAL | rate |
| respawn rate | |
| SI32 | stamina |
| stamina used | |
| UI32 | area_width |
| resource area width | |
| UI32 | area_height |
| resource area height | |
Private Methods | |
| UI64 | getBlocks (Location location) |
| P_RESOURCE | createBlock (Location location) |
| void | deleteBlock (Location Location) |
| bool | checkRes (P_RESOURCE res) |
Private Attributes | |
| RESOURCE_MAP | resources |
| all resources | |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
resource area height
|
|
|
resource area width
|
|
|
number of resource max
|
|
|
respawn rate
|
|
|
all resources
|
|
|
stamina used
|
|
|
|