BWAPI
quorum/ExampleAIModule/SiegeTankMicroTactics.h
Go to the documentation of this file.
00001 #ifndef SIGEGEMICRO_H
00002 #define SIGEGEMICRO_H
00003 #include "MicroTacticsModel.h"
00004 #include "BWAPI.h"
00005 
00006 using namespace BWAPI;
00007 class CrawlingBallAttack;
00008 
00009 class SiegeTankMicroTactics : public MicroTacticsModel {
00010 
00011 public:
00012         SiegeTankMicroTactics::SiegeTankMicroTactics(Unit* u, CrawlingBallAttack* s);
00013         SiegeTankMicroTactics::SiegeTankMicroTactics(Unit* u, int movementLag);
00014         virtual bool MicroTacticsModel::executeTactics();
00015         virtual Unit* getUnit();
00016         virtual void setMovementLag(int l);
00017         virtual void move(Position p);
00018         void setTarget(Unit* t);
00019         void clearTarget();
00020         void declareTarget();
00021                 virtual UnitType getKnownType();
00022 private:
00023         Unit* element;
00024         Unit* myTarget;
00025         Unit* squadTarget;
00026         TargetFitnessCalculator* fitnessCalculator;
00027         Position targetLoc;
00028         int wait;
00029         int initialMovementLag;
00030         int movementLagTimer;
00031         Unit* followTarget;
00032         Unit* lastTarget;
00033         CrawlingBallAttack* squadTactics;
00034                 UnitType knownType;
00035                 int teleporterClickCount;
00036                 Unit* firstClicked;
00037 
00038 };
00039 
00040 
00041 #endif
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines