Post Port Pseudocode Resources - Milowan/WarChildPort GitHub Wiki
Resources : public AActor
int amount int maxDrop int minDrop ResourceType type
Resources()
set amount to random value between maxDrop and minDrop
GetType()
returns type of resource
SetType(ResourceType rType)
set type to rType
AddAmount(int value)
add value to amount
ReduceAmount(int value)
make value negative and pass to AddAmount
GetAmount()
returns the amount of the resource
Coin : public Resources
Coin()
set maxDrop and minDrop
Metals : public Resources
Metals()
set maxDrop and minDrop
Plastics : public Resources
Plastics()
set maxDrop and minDrop