WorldSim
inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
|
#include <Item.hpp>
Public Member Functions | |
Item_Fishrod () | |
std::string | getName () |
virtual void | interact (LocalTile *_tile, int interactionType=0) |
void | interact (WorldObject *_w, int interactType=0) |
std::string | getInteractName (WorldObject *_w) |
std::string | getInteractName (LocalTile *_w) |
virtual int | interactTime (WorldObject *_w) |
virtual int | interactTime (LocalTile *_w) |
virtual Vector< std::string > * | getInteractNames (LocalTile *_w) |
Texture * | currentTexture () |
Public Member Functions inherited from Item | |
Item () | |
virtual | ~Item () |
virtual std::string | getExtendedInfo () |
virtual std::string | getQuality () |
virtual bool | canUseInRecipe (Recipe *_recipe) |
virtual void | interact (Item *obj, int interactionType=0) |
virtual void | interact (Character *obj, int interactionType=0) |
virtual void | interact (Creature *obj, int interactionType=0) |
virtual Vector< std::string > * | getInteractNames (WorldObject *_w) |
virtual Vector< std::string > * | getInteractNames (Item *_w) |
virtual Vector< std::string > * | getInteractNames (Character *_w) |
virtual Vector< std::string > * | getInteractNames (Creature *_w) |
virtual Vector< std::string > * | getInteractNames (Static *_w) |
bool | sameType (WorldObject _obj) |
bool | sameType (Item *_item) |
virtual void | addToRecipeManager () |
virtual void | attachInformation (Item_Information *_information) |
std::string | getColumn (std::string _column) |
std::string | getColumnType (std::string _column) |
std::string | getSaveData () |
void | loadData (std::string) |
Public Member Functions inherited from WorldObject | |
WorldObject () | |
virtual | ~WorldObject () |
virtual void | wander () |
int | distanceTo (WorldObject *) |
int | distanceFrom (WorldObject *) |
int | distanceTo (int, int) |
std::string | getBaseData () |
std::string | getSaveData () |
void | loadData (std::string) |
Public Member Functions inherited from Craftable | |
Craftable () | |
Item * | produce () |
Static Public Member Functions | |
static StockpileRequirement | getStockpileRequirement () |
Static Public Member Functions inherited from Item | |
static StockpileRequirement | getStockpileRequirement () |
Additional Inherited Members | |
Public Attributes inherited from Item | |
short int | count |
ItemType | type |
Item_Attributes | attributes |
std::unordered_map< ItemAction, char > | mAction |
short int | meleeDamage |
short int | throwDamage |
short int | reach |
char | ammunitionType |
Character * | owner |
int | consumeTime |
int | hungerRestore |
Item_Information * | information |
int | slashDamage |
int | bluntDamage |
int | pierceDamage |
float | throwMultiplier |
int | chopTreeCost |
int | fishingCost |
Public Attributes inherited from WorldObject | |
short int | x |
short int | y |
bool | isUnderground |
long unsigned int | fullX |
long unsigned int | fullY |
int | worldX |
int | worldY |
bool | stackable |
double | weight |
double | bulk |
bool | blocksView |
bool | blocksMovement |
bool | canCook |
int | chopAmount |
bool | canHarvest |
Public Attributes inherited from Craftable | |
bool | requiresLocation |
|
inline |
|
inlinevirtual |
Reimplemented from Item.
|
inlinevirtual |
Reimplemented from Item.
|
virtual |
Reimplemented from Item.
|
inlinevirtual |
Reimplemented from Item.
|
inlinestatic |
|
virtual |
Reimplemented from Item.
|
inlinevirtual |
Reimplemented from Item.
|
inlinevirtual |
Reimplemented from Item.