Class UZagalaSpecExecutionState#
Defined in File ZagalaSpecExecutionState.h
Inheritance Relationships#
Base Type#
public UObject
Class Documentation#
-
class UZagalaSpecExecutionState : public UObject#
UObject wrapper that manages EZagalaSpecExecutionState transitions with guarded methods.
Allowed transitions: Reset() — any state → Inactive Execute() — Inactive → Executing (no-op + warning in any other state) Succeed() — Executing → Succeeded (no-op + warning in any other state) Fail() — Executing → Failed (no-op + warning in any other state)
Query methods: IsInactive(), IsExecuting(), HasSucceeded(), HasFailed(), HasFinished()
Public Functions
-
UZagalaSpecExecutionState(const FObjectInitializer &ObjectInitializer = FObjectInitializer::Get())#
-
void Reset()#
Resets to Inactive unconditionally.
-
void Execute()#
Transitions Inactive → Executing.
No-op (with warning) if already Executing, Succeeded, or Failed.
-
void Succeed()#
Transitions Executing → Succeeded.
No-op (with warning) if not currently Executing.
-
void Fail(const FString &FailureReason = TEXT(""))#
Transitions Executing → Failed.
No-op (with warning) if not currently Executing.
- Parameters:
FailureReason – The reason stored for the failure.
-
FString GetFailureReason() const#
Gets the failure reason if the state has failed.
- Returns:
The stored failure reason.
-
bool IsInactive() const#
Returns whether the state is Inactive.
- Returns:
True if the state is Inactive.
-
bool IsExecuting() const#
Returns whether the state is Executing.
- Returns:
True if the state is Executing.
-
bool HasSucceeded() const#
Returns whether the state is Succeeded.
- Returns:
True if the state is Succeeded.
-
bool HasFailed() const#
Returns whether the state is Failed.
- Returns:
True if the state is Failed.
-
bool HasFinished() const#
Returns whether execution has finished.
- Returns:
True if the state is Succeeded or Failed.
-
UZagalaSpecExecutionState(const FObjectInitializer &ObjectInitializer = FObjectInitializer::Get())#