CanAfford
Resolves a Settlement and named command, then returns whether a cost check succeeds.
Signature
bool Settlement::CanAfford(str)Parameters and return
Receiver: Settlement · Return: bool
| Position | Type |
|---|---|
| 1 | str |
Other overloads
| Member | Signature and description |
|---|---|
Settlement::CanAffordSettlement | bool Settlement::CanAfford(int, int)Tests positive signed resource quotients after subtracting the keyed reservation from available gold. |
Settlement::CanAffordSettlement | bool Settlement::CanAfford(str, int)Compares the requested count with the signed native command affordability count. |