BWAPI
SPAR/AIModule/SparAIModule/DecisionMaking/Layer4Strategic/Layer4Strategic.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "../../../Utils/Utils.h"
00003 #include "../../Utils/Component.h"
00004 #include <BWAPI.h>
00005 
00006 template <class Layer4StrategicRecognition, class Layer3Tactical>
00007 class Layer4Strategic : public Component
00008 {
00009 public:
00010 
00011   template <class TechType>
00012   struct TechTypes {};
00013   template <>
00014   struct TechTypes<UnitTypeTech> {
00015     typedef empty<Layer4Strategic> Type;
00016   };
00017   template <>
00018   struct TechTypes<TechTypeTech> {
00019     typedef empty<Layer4Strategic> Type;
00020   };
00021   template <>
00022   struct TechTypes<UpgradeTypeTech> {
00023     typedef empty<Layer4Strategic> Type;
00024   };
00025 
00026   Layer4Strategic(Layer4StrategicRecognition& layer4StrategicRecognition, Layer3Tactical& layer3Tactical)
00027     : m_layer4StrategicRecognition(layer4StrategicRecognition)
00028     , m_layer3Tactical(layer3Tactical)
00029   {
00030   }
00031 
00032   void onStart() {}
00033   void onFrame() {}
00034   void onEnd() {}
00035   void onSendText(std::string text) {}
00036 
00037 protected:
00038   Layer4StrategicRecognition& m_layer4StrategicRecognition;
00039   Layer3Tactical& m_layer3Tactical;
00040 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines