00001
00002
00003
00004
00005
00006
00007
00008 #ifndef COMMANDHELP_H_
00009 #define COMMANDHELP_H_
00010
00011 #include <OgreVector3.h>
00012
00013 #include <ent.h>
00014
00015
00016
00017 #include "buildings.h"
00018
00019 namespace FastEcslent {
00020
00021 class CommandFactory;
00022 class Gather;
00023 class Minerals;
00024 Move* createMoveForEnt(Entity* ent, Ogre::Vector3 pos);
00025 Wait* createWaitForEnt(Entity* ent, double wtime);
00026 Gather* createGatherForEntAndMineral(SCVehicle *scv, Entity *resource);
00027
00028 void setMoveForEnt(Entity* ent, Ogre::Vector3 pos);
00029 void addMoveForEnt(Entity* ent, Ogre::Vector3 pos);
00030
00031 void setPotentialMoveForEnt(Entity* ent, Ogre::Vector3 pos, bool append);
00032 std::deque<Command*> addCommandForEnt(Entity* ent, CommandFactory* commandFactory, std::pair<int, Ogre::Vector3 > mouseTargets);
00033
00034
00038 void setGatherForEnt(Entity* ent, Entity* resource, bool append);
00039 std::string EntityTypeToIconName(EntityType entType);
00040
00041 }
00042
00043 #endif