diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-09-30 08:50:49 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-09-30 08:50:49 -0400 |
commit | cfa79da357843f7918ff7108bce80acb59df3413 (patch) | |
tree | 5c287ad36ca30519715fe15cd6f3642ee42c6c45 /include/entities.h | |
parent | a9f617e28ed109786cbdf9457878a2837d292a9a (diff) | |
parent | b3e21d31304efd793c58e904765bf298da6c5c20 (diff) |
Started names and genders
Diffstat (limited to 'include/entities.h')
-rw-r--r-- | include/entities.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/entities.h b/include/entities.h index 77eaaab..9f5e5df 100644 --- a/include/entities.h +++ b/include/entities.h @@ -3,6 +3,8 @@ #include <common.h> +#define NPCp(n) ((NPC *)n) + class Entity{ public: void *inWorld; @@ -42,8 +44,11 @@ public: }; class NPC : public Entity{ +private: + std::vector<int (*)(NPC *)>aiFunc; public: NPC(); + void addAIFunc(int (*func)(NPC *)); void interact(); }; class Structures : public Entity{ |