Represents and object that can be interacted with to gain resources and train skills.
More...
|
| | ResourceObject (int id, std::string instanceId, std::string name, Coordinates coords, unsigned int rotation, std::vector< YieldableItem > yieldableItemList, int xpPerYield, int depleteChance, int relatedSkillId, int xpRequirement, reader::ObjectType type, std::vector< ItemTransform > itemTransformList) |
| |
| | ResourceObject (const ResourceObjectStruct &object, const ObjectLocation &location, reader::ObjectType type) |
| |
| bool | canInteract (Entity &entity) |
| | Check if the entity can interact with the object. More...
|
| |
| void | interact (Entity &entity) |
| | Interact with the object. More...
|
| |
| | Object (int id, std::string instanceId, std::string name, Coordinates coordinates, unsigned int rotation, reader::ObjectType objectType) |
| |
| | Object (const GeneralObjectStruct &object, const ObjectLocation &location, reader::ObjectType objectType) |
| |
| virtual | ~Object ()=default |
| |
| const int & | getId () |
| | Get the id of the object. More...
|
| |
| const std::string & | getInstanceId () |
| | Get the instance id of the object. More...
|
| |
| const std::string & | getName () |
| | Get the name of the object. More...
|
| |
| const Coordinates & | getLocation () |
| | Get the location of the object. More...
|
| |
| const unsigned int & | getRotation () |
| | Get the rotation of the object. More...
|
| |
| const reader::ObjectType & | getObjectType () |
| | Get the ObjectType of object. More...
|
| |
Represents and object that can be interacted with to gain resources and train skills.