A simple npc.
More...
#include <npc.h>
Inherits GameObject.
Additional Inherited Members |
Image | mImage |
Physics | mPhysics |
| Handle's the objects physics.
|
std::string | mTag |
| To store tags to identify the object.
|
Detailed Description
A simple npc.
The base NPC class
Member Function Documentation
void Npc::Draw |
( |
Camera * |
cam = nullptr | ) |
|
|
virtual |
Draw the gameobject, apply an adjustment for the camera if one is desired
- Parameters
-
cam | The camera to adjust for |
Implements GameObject.
void Npc::Load |
( |
Json::Value |
val | ) |
|
|
virtual |
Load the object from a Json::Value
- See Also
- GameObject::Load for loading of inherited members
- Parameters
-
val | The Json::Value to load from |
Reimplemented from GameObject.
void Npc::Move |
( |
float |
deltaT | ) |
|
|
virtual |
Json::Value Npc::Save |
( |
| ) |
|
|
virtual |
Save the object data to a json value and return it
- See Also
- GameObject::Save for saving of inherited members
- Returns
- The Json::Value containing the object data
Reimplemented from GameObject.
void Npc::SetMove |
( |
int |
moveDir | ) |
|
Give the npc a direction to move in
- Parameters
-
moveDir | The direction to move in |
- See Also
- Math enum
The documentation for this class was generated from the following files:
- C:/Users/Will/Documents/Programs/LPCGame/src/npc.h
- C:/Users/Will/Documents/Programs/LPCGame/src/npc.cpp