Stamina.HasRequired
Method in Stamina
Declaration
public bool HasRequired(IStaminaCostAction action)Description
Determines if there is enough stamina to perform a given action.
Parameters
| action | The stamina action to perform. |
Returns
| bool | True if there is enough stamina, false otherwise. |
Overload
Declaration
public bool HasRequired(StaminaCost cost)Description
Determines if there is enough stamina for a given cost.
Parameters
| cost | The stamina cost of an action. |
Returns
| bool | True if there is enough stamina, false otherwise. |