Documentation for C++/SDL 2.0 Tile Engine
Making a simple tile based engine
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
src
npc.h
1
#ifndef NPC_H
2
#define NPC_H
3
4
#include "SDL.h"
5
#include "../externals/json/json.h"
6
#include "gameobject.h"
7
#include "rect.h"
8
#include "vectors.h"
9
#include "window.h"
10
#include "image.h"
11
13
16
class
Npc
:
public
GameObject
{
17
public
:
18
Npc
();
19
~
Npc
();
21
void
Update
();
26
void
Move
(
float
deltaT);
31
void
Draw
(
Camera
*cam =
nullptr
);
36
void
SetMove
(
int
moveDir);
42
Json::Value
Save
();
48
void
Load
(Json::Value val);
49
50
private
:
52
Npc
(
const
Npc
&a);
53
Npc
& operator = (
const
Npc
&a);
54
};
55
56
#endif
Generated on Fri Aug 10 2012 14:02:30 for Documentation for C++/SDL 2.0 Tile Engine by
1.8.1.2