#include <item.h>
Public Member Functions | |
Misc (int _rarity, int _weight, Tile _sprite, std::string _name, IntPoint _coords) | |
Misc (IntPoint _coords, MiscType misc) | |
void | perform_action () |
![]() | |
Item (IntPoint _coords) | |
Item (int _rarity, int _weight, Tile _sprite, std::string _name, IntPoint _coords) | |
int | get_weight () |
Tile * | get_sprite () |
IntPoint | get_coords () |
void | set_coords (IntPoint _c) |
std::string | get_name () |
int | get_rarity () |
std::string | get_description () |
int | get_size () |
Additional Inherited Members | |
![]() | |
bool | can_equip |
bool | can_use |
bool | can_wield |
bool | can_consume |
![]() | |
std::string | name |
std::string | description |
int | weight |
IntPoint | coords |
Tile | sprite |
int | rarity |
int | size |
Class for creating misc items. Misc items are items that don't fall into any other categor and generally don't do anything.
The constructor for misc items.
_rarity | Sets the rarity of the misc item. |
_weight | Sets the weight of the misc item. |
_sprite | Sets the sprite for the misc item. |
_name | Sets the name of the misc item. |
_coords | Sets the coordinates of the misc item. |
Constructor for the misc item. This is the normally used constructor, relying on the defined MiscType and taking a set of coordinates.
_coords | Sets the coordinates of the misc item. |
misc | The template for the misc item. |
|
virtual |