Peoplemon  0.1.0
Peoplemon 3 game source documentation
NPC.hpp
Go to the documentation of this file.
1 #ifndef CORE_COMPONENTS_NPC_HPP
2 #define CORE_COMPONENTS_NPC_HPP
3 
5 #include <Core/Files/NPC.hpp>
6 
7 namespace core
8 {
9 namespace component
10 {
17 class NPC {
18 public:
24  NPC(const file::NPC& data);
25 
30  const std::string& name() const;
31 
36  const file::Conversation& conversation() const;
37 
38 private:
39  const std::string _name;
40  file::Conversation _conversation;
41 };
42 
43 } // namespace component
44 } // namespace core
45 
46 #endif
Core classes and functionality for both the editor and game.
Adding this to an entity will allow it to be interacted with and talked to.
Definition: NPC.hpp:17
NPC(const file::NPC &data)
Construct a new NPC component.
Definition: NPC.cpp:9
const file::Conversation & conversation() const
The conversation of the NPC.
Definition: NPC.cpp:23
const std::string & name() const
The name of the NPC.
Definition: NPC.cpp:21
Stores a conversation that an NPC or trainer can have with the player.
File data for NPCs.
Definition: NPC.hpp:26