BWAPI
quorum/ExampleAIModule/GoalGeneratorBase.h
Go to the documentation of this file.
00001 #ifndef GOALGENERATOR_H
00002 #define GOALGENERATOR_H
00003 #include "BWAPI.h"
00004 #include "Arbitrator.h"
00005 #include "AgentPool.h"
00006 #include "GoalTypes.h"
00007 
00008 /*
00009         Headers for specific implementations of this class are stored in separate files relating to which
00010         agent they concern. ie. Resource_GoalHeaders.h contains class headers for all goals instantiated
00011         by the resource manager agent.
00012 */
00013 
00014 using namespace BWAPI;
00015 
00016 class GoalGeneratorBase {
00017 public:
00018         
00019         virtual void updateDrives() = 0;
00020         virtual bool instantiateGoal() = 0;
00021         virtual void inhibit() = 0;
00022         virtual void initialize() = 0;
00023         virtual int getthresh() = 0;
00024         virtual int getdrive() = 0;
00025 
00026 
00027 private:
00028         // generic stuff
00029         bool inhibited;
00030         AgentPool* agentPool;
00031         int drive;
00032         int threshold;
00033         int priority;
00034 
00035         // what afterwards, like task-specific vars
00036         
00037 
00038 };
00039 
00040 
00041 
00042 #endif
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines