Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | List of all members
core::component::NPC Class Reference

Adding this to an entity will allow it to be interacted with and talked to. More...

#include <NPC.hpp>

Public Member Functions

 NPC (const file::NPC &data)
 Construct a new NPC component. More...
 
const std::string & name () const
 The name of the NPC. More...
 
const file::Conversationconversation () const
 The conversation of the NPC. More...
 

Detailed Description

Adding this to an entity will allow it to be interacted with and talked to.

Definition at line 17 of file NPC.hpp.

Constructor & Destructor Documentation

◆ NPC()

core::component::NPC::NPC ( const file::NPC data)

Construct a new NPC component.

Parameters
dataThe NPC file data

Definition at line 9 of file NPC.cpp.

Member Function Documentation

◆ conversation()

const file::Conversation & core::component::NPC::conversation ( ) const

The conversation of the NPC.

Definition at line 23 of file NPC.cpp.

◆ name()

const std::string & core::component::NPC::name ( ) const

The name of the NPC.

Definition at line 21 of file NPC.cpp.


The documentation for this class was generated from the following files: