Class UZagalaSpecPDCheckHoverHeightRange#

Inheritance Relationships#

Base Type#

Class Documentation#

class UZagalaSpecPDCheckHoverHeightRange : public UZagalaSpecPDWaitForTicks#

Protocol driver chain link that reads the hover height from the hoverboard snapshot in cache and verifies it against the Hoverboard SUT.

Waits for a number of ticks before failing, to allow the hoverboard to stabilize.

Cache contract (AssignedCacher, forwarded from the owning step): Reads: ZagalaSpecDataTickLimit - Checks it is present in cache. UZagalaSpecDataHoverboardRef — the SUT UZagalaSpecDataHoverboardSnapshot — captured state UZagalaSpecDataExpectedMinHeight — value from expectation UZagalaSpecDataExpectedMaxHeight — value from expectation Writes: (none)

Protected Functions

virtual void InternalExecute_Implementation(const TScriptInterface<IZagalaSpecTaggedDataCacher> &AssignedCacher) override#

Native implementation of InternalExecute(); broadcasts a failure unless overridden.

Parameters:

AssignedCacher – The tagged data cache assigned to this link.

virtual EZagalaSpecTickCheckResult OnTickCheck(IZagalaSpecTaggedDataCacher *Cacher, int32 TicksSoFar, FString &OutFailureReason) override#

Called each tick of the play session world while this driver is running.

Override in subclasses to add polling logic.

Parameters:
  • Cacher – The AssignedCacher passed to InternalExecute.

  • TicksSoFar – Number of ticks elapsed since InternalExecute was called.

  • OutFailureReason – Set if returning Fail; left unchanged otherwise.

Returns:

TickCheckResult indicating how to proceed.

Protected Attributes

TWeakObjectPtr<AZagalaSpecExamplesHoverboardActor> Hoverboard#

Weak pointer to the hoverboard actor.

float SnapshotHeight#

Snapshot height of the hoverboard when spawned.

float ExpectedMinHeight#

Expected minimum height of the hoverboard.

float ExpectedMaxHeight#

Expected maximum height of the hoverboard.