2014-07-04 22:06:56 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef _ITEMPICKUP_HPP_
|
|
|
|
#define _ITEMPICKUP_HPP_
|
|
|
|
#include <objects/PickupObject.hpp>
|
|
|
|
#include <glm/glm.hpp>
|
2016-04-10 19:55:40 +02:00
|
|
|
|
|
|
|
class InventoryItem;
|
2014-07-04 22:06:56 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The ItemPickup class
|
|
|
|
* Inserts an item into a characters inventory on pickup.
|
|
|
|
*/
|
|
|
|
class ItemPickup : public PickupObject
|
|
|
|
{
|
2016-04-10 19:55:40 +02:00
|
|
|
InventoryItem* item;
|
2014-07-04 22:06:56 +02:00
|
|
|
public:
|
|
|
|
|
2016-04-10 19:55:40 +02:00
|
|
|
ItemPickup(GameWorld* world, const glm::vec3& position, InventoryItem* item);
|
2014-07-04 22:06:56 +02:00
|
|
|
|
|
|
|
bool onCharacterTouch(CharacterObject* character);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|