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

Base class for all pickable objects in the game. More...

#include <PickableItem.h>

Inheritance diagram for APickableItem:
Collaboration diagram for APickableItem:

Public Member Functions

 APickableItem ()
 Initializes the pickable item with default settings.
 
virtual void BeginPlay () override
 Called when the item is spawned in the world.
 
virtual void Tick (float DeltaTime) override
 Updates the item each frame.
 
FString GetItemName () const
 
virtual void PickedUp_Implementation (AActor *_player, AActor *_object) override
 Handles the pickup action when a player takes this item.
 
- Public Member Functions inherited from IIPickable
void PickedUp (AActor *Player, AActor *Object)
 
void Drop (AActor *Player, AActor *Object)
 Drop interaction.
 
virtual void Drop_Implementation (AActor *Player, AActor *Object)
 Default implementation for drop behavior.
 

Public Attributes

FString name
 

Detailed Description

Base class for all pickable objects in the game.

Implements the IPickable interface and provides item identification functionality

Constructor & Destructor Documentation

◆ APickableItem()

APickableItem::APickableItem ( )

Initializes the pickable item with default settings.

Sets up tick functionality and default actor properties

Member Function Documentation

◆ BeginPlay()

void APickableItem::BeginPlay ( )
overridevirtual

Called when the item is spawned in the world.

Performs any initialization logic required when the item becomes active

◆ GetItemName()

FString APickableItem::GetItemName ( ) const
inline

METHODS //////// Item information

Here is the caller graph for this function:

◆ PickedUp_Implementation()

void APickableItem::PickedUp_Implementation ( AActor * _player,
AActor * _object )
overridevirtual

Handles the pickup action when a player takes this item.

INTERFACE IMPLEMENTATION //////// IPickable interface

Implements the IPickable interface for pickup behavior

Parameters
_playerThe player actor picking up the item
_objectThe object being picked up (typically this item)

Reimplemented from IIPickable.

Here is the call graph for this function:

◆ Tick()

void APickableItem::Tick ( float DeltaTime)
overridevirtual

Updates the item each frame.

Handles any per-frame logic for the pickable item

Parameters
DeltaTimeTime elapsed since the last frame in seconds

Member Data Documentation

◆ name

FString APickableItem::name

PROPERTIES //////// Item identification


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