00001
00002
00003
00004
00005
00006
00007
00008 #ifndef UNITAI_H_
00009 #define UNITAI_H_
00010
00011 #include <deque>
00012 #include <aspect.h>
00013 #include <command.h>
00014
00015
00016 namespace FastEcslent {
00017
00018 class Entity;
00019
00020
00021 class UnitAI : public UnitAspect {
00022 public:
00023 std::deque<Command*> commands;
00024
00025 UnitAI (Entity* ent, UnitAspectType at): UnitAspect(ent, at) {};
00026 virtual void tick(double dt);
00027 virtual void init();
00028 void addCommand(Command *cmd);
00029 void setCommand(Command *cmd);
00030 void setCommandList(std::deque<Command*> comds);
00031 };
00032 }
00033
00034 #endif