Stamina.HasRequired

Method in Stamina

Declaration

public bool HasRequired(IStaminaCostAction action)

Description

Determines if there is enough stamina to perform a given action.

Parameters

actionThe stamina action to perform.

Returns

boolTrue 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

costThe stamina cost of an action.

Returns

boolTrue if there is enough stamina, false otherwise.