Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#ifndef NPC_H
#define NPC_H
#include "entity.h"
#include "player.h"
/**
* The Player class represents all non playable characters
* It intended for inheritance by other classes that implement
* the actual behaviour of the various different creatures
*/
class NPC : public Entity
{
public:
/* since this class's constructor is just
going to call the parent constructor,
use the parent constructor directly */
using Entity::Entity;
/** Run the encounter action for this NPC and a
* given player.
* @param[player] Player object to encounter
*/
virtual void encounter( Player& player ) = 0;
};
#endif