4#include <SFML/Graphics.hpp>
15 Texture characterTexture;
22 NPC(std::string characterSprite,
float npcXPos,
float npcYPos);
26 void update(RenderWindow& window,
const Player& player)
override;
29 static std::unique_ptr<NPC>
createNPC(std::string characterSprite,
float npcXPos,
float npcYPos);
Interactable(std::string interactableTexturePath, std::string interactableName, float interactableRadius, float interactableXRelMap, float interactableYRelMap)
Definition Interactable.cpp:3
~NPC()
Definition NPC.cpp:19
NPC(std::string characterSprite, float npcXPos, float npcYPos)
interactiable gets initalized before NPC constructor, beacuse it is a super type of NPC(NPC inherits ...
Definition NPC.cpp:6
void update(RenderWindow &window, const Player &player) override
what is displayed
Definition NPC.cpp:29
void renderNPC(RenderWindow &window)
Definition NPC.cpp:23
static std::unique_ptr< NPC > createNPC(std::string characterSprite, float npcXPos, float npcYPos)
static function so we can access it without creating an instance of the NPC class
Definition NPC.cpp:42