![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Basic struct representing a pickup-able item in Map. More...
#include <Item.hpp>
Public Member Functions | |
Item () | |
Makes an empty item. More... | |
Item (std::uint16_t id, std::uint16_t mapId, const sf::Vector2i &pos, std::uint8_t level, bool visible) | |
Makes an item from the given parameters. More... | |
Public Attributes | |
std::uint16_t | id |
std::uint16_t | mapId |
sf::Vector2i | position |
std::uint8_t | level |
bool | visible |
core::map::Item::Item | ( | std::uint16_t | id, |
std::uint16_t | mapId, | ||
const sf::Vector2i & | pos, | ||
std::uint8_t | level, | ||
bool | visible | ||
) |
Makes an item from the given parameters.
id | The id of the item that gets added to the bag |
mapId | A map unique id to avoid spawning picked up items |
pos | The position of the item, in tiles |
level | The level the item is on |
visible | True to render the item, false to hide |