|
Oakfolks Gold_1.14
Oakfolks coop game
|
Base class for all pickable objects in the game. More...
#include <PickableItem.h>


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 |
Base class for all pickable objects in the game.
Implements the IPickable interface and provides item identification functionality
| APickableItem::APickableItem | ( | ) |
Initializes the pickable item with default settings.
Sets up tick functionality and default actor properties
|
overridevirtual |
Called when the item is spawned in the world.
Performs any initialization logic required when the item becomes active
|
inline |
METHODS //////// Item information

|
overridevirtual |
Handles the pickup action when a player takes this item.
INTERFACE IMPLEMENTATION //////// IPickable interface
Implements the IPickable interface for pickup behavior
| _player | The player actor picking up the item |
| _object | The object being picked up (typically this item) |
Reimplemented from IIPickable.

|
overridevirtual |
Updates the item each frame.
Handles any per-frame logic for the pickable item
| DeltaTime | Time elapsed since the last frame in seconds |
| FString APickableItem::name |
PROPERTIES //////// Item identification