Class UZagalaSpecPDCheckDisplacement#

Inheritance Relationships#

Base Type#

Class Documentation#

class UZagalaSpecPDCheckDisplacement : public UZagalaSpecPDWaitForTicks#

Protocol driver chain link that reads the hoverboard displacement 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 throttle for a while.

Cache contract (AssignedCacher, forwarded from the owning step): Reads: ZagalaSpecDataTickLimit - Checks it is present in cache. UZagalaSpecDataHoverboardRef — the SUT UZagalaSpecDataHoverboardSnapshot — captured state UZagalaSpecDataExpectedDirection — value from expectation UZagalaSpecDataExpectedRelativeDisplacement — 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.

FVector SnapshotLocation#

Snapshot location of the hoverboard when spawned.

FVector SnapshotForwardVector#

Snapshot forward vector of the hoverboard when spawned.

FString ExpectedDirection#

Expected direction of the hoverboard.

float ExpectedRelativeDisplacement#

Expected displacement of the hoverboard relative to its spawn displacement.