#include <Interactable.h>
Public Member Functions | |
| Interactable (std::string interactableTexturePath, std::string interactableName, float interactableRadius, float interactableXRelMap, float interactableYRelMap) | |
| float | getRadius () const |
| bool | playerInRange (const Player &player) |
| virtual void | update (RenderWindow &window, const Player &player) |
| void | drawInteractable (RenderWindow &window, const Player &player) |
| Interactable::Interactable | ( | std::string | interactableTexturePath, |
| std::string | interactableName, | ||
| float | interactableRadius, | ||
| float | interactableXRelMap, | ||
| float | interactableYRelMap ) |
error handling for loading interactable texture
sets interactable object
set default scale of objects
set the font of the text and set the text
change text if it is an NPC you are interacting with
| void Interactable::drawInteractable | ( | RenderWindow & | window, |
| const Player & | player ) |
NPCs have their own scaling
| float Interactable::getRadius | ( | ) | const |
| bool Interactable::playerInRange | ( | const Player & | player | ) |
|
virtual |