Oakfolks Gold_1.14
Oakfolks coop game
Loading...
Searching...
No Matches
ADeliveryPoint Class Reference

Delivery point for transforming items into new objects. More...

#include <DeliveryPoint.h>

Inheritance diagram for ADeliveryPoint:
Collaboration diagram for ADeliveryPoint:

Public Member Functions

 ADeliveryPoint ()
 Initializes the delivery point with collision detection.
 
virtual void BeginPlay () override
 Called when the delivery point is spawned in the world.
 
virtual void Tick (float DeltaTime) override
 Updates the delivery point each frame.
 

Public Attributes

UBoxComponent * ColliderBox
 
UBillboardComponent * WorldPoint
 
TSubclassOf< APickableItemItemType
 
TSubclassOf< APickableItemObjectToSpawn
 

Protected Member Functions

void OnOverlapBegin (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
 Handles item overlap detection and transformation.
 

Protected Attributes

bool DoOnce = false
 

Detailed Description

Delivery point for transforming items into new objects.

Detects specific item types and spawns corresponding output objects

Constructor & Destructor Documentation

◆ ADeliveryPoint()

ADeliveryPoint::ADeliveryPoint ( )

Initializes the delivery point with collision detection.

Sets up collision box and overlap events for item detection

Here is the call graph for this function:

Member Function Documentation

◆ BeginPlay()

void ADeliveryPoint::BeginPlay ( )
overridevirtual

Called when the delivery point is spawned in the world.

Performs initialization logic for the delivery system

◆ OnOverlapBegin()

void ADeliveryPoint::OnOverlapBegin ( UPrimitiveComponent * OverlappedComponent,
AActor * OtherActor,
UPrimitiveComponent * OtherComp,
int32 OtherBodyIndex,
bool bFromSweep,
const FHitResult & SweepResult )
protected

Handles item overlap detection and transformation.

EVENT CALLBACKS //////// Collision detection

Spawns output object when the correct item type is delivered

Parameters
OverlappedComponentThe component that was overlapped
OtherActorThe actor that entered the delivery zone
OtherCompThe component of the overlapping actor
OtherBodyIndexBody index of the collision
bFromSweepWhether this was from a sweep operation
SweepResultHit result from sweep if applicable
Here is the caller graph for this function:

◆ Tick()

void ADeliveryPoint::Tick ( float DeltaTime)
overridevirtual

Updates the delivery point each frame.

Handles any per-frame logic for the delivery system

Parameters
DeltaTimeTime elapsed since the last frame in seconds

Member Data Documentation

◆ ColliderBox

UBoxComponent* ADeliveryPoint::ColliderBox

COMPONENTS //////// Collision and positioning

◆ DoOnce

bool ADeliveryPoint::DoOnce = false
protected

STATE TRACKING //////// Delivery state

◆ ItemType

TSubclassOf<APickableItem> ADeliveryPoint::ItemType

CONFIGURATION //////// Item transformation setup


The documentation for this class was generated from the following files: