BWAPI
Defines | Typedefs | Enumerations
defines.h File Reference
#include <BWAPI.h>
#include <set>
#include <map>
#include <string>
#include <list>
#include <math.h>
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PI   3.141592
#define ANALYSIS_FREQ   1
#define DEFAULT_TASK_VALIDATION_FREQ   100
#define DIST_APTITUDE_FACTOR   100.0
#define NO_APTITUDE   -1.0
#define MIN_TASK_HOLD_FRAMES   50
#define MAX_SUPPLY   400
#define MAX_THREAT_RANGE   400
#define MAX_RESOURCE_RANGE   400
#define MAX_BUILD_RANGE   800
#define MAX_POS_DISTANCE   10000000
#define SECTOR_LENGTH   10
#define SECTOR_LENGTH_IN_PIXELS   320
#define SECTOR_FRAMES_PER_REFRESH   10
#define SECTOR_FRAMES_PER_EXPLORE   500
#define SECTOR_STUCK_TIMEOUT   10000
#define MAX_ACTIVE_ASSAULT_PRIORITY   120
#define MIN_ACTIVE_ASSAULT_PRIORITY   110
#define MAX_ACTIVE_PROTECT_PRIORITY   110
#define MIN_ACTIVE_PROTECT_PRIORITY   100
#define MAX_INACTIVE_ASSAULT_PRIORITY   100
#define MIN_INACTIVE_ASSAULT_PRIORITY   90
#define MAX_MOVE_PRIORITY   100
#define MIN_MOVE_PRIORITY   90
#define MAX_ATTACK_PRIORITY   90
#define MIN_ATTACK_PRIORITY   80
#define MAX_SCAN_PRIORITY   90
#define MIN_SCAN_PRIORITY   80
#define MAX_EXPLORE_PRIORITY   80
#define MIN_EXPLORE_PRIORITY   70
#define MAX_RESEARCH_PRIORITY   70
#define MIN_RESEARCH_PRIORITY   60
#define MAX_BUILD_PRIORITY   70
#define MIN_BUILD_PRIORITY   60
#define MAX_TRAIN_PRIORITY   70
#define MIN_TRAIN_PRIORITY   60
#define MAX_MINERAL_PRIORITY   40
#define MIN_MINERAL_PRIORITY   30
#define MAX_GAS_PRIORITY   40
#define MIN_GAS_PRIORITY   30
#define MAX_PASSIVE_PROTECT_PRIORITY   20
#define MIN_PASSIVE_PROTECT_PRIORITY   10

Typedefs

typedef set< Task * > TaskSet
typedef set< Unit * > UnitSet
typedef set< Agent * > AgentSet
typedef set< BuildingSpaceInfo * > PlannedBuildingSet
typedef set< TaskTypeTaskTypeSet
typedef set< AgentTypeAgentTypeSet
typedef set< TilePosition > TilePositionSet
typedef set< MapSector * > MapSectorSet
typedef set< UnitMemory * > UnitMemorySet
typedef map< unsigned long,
TilePosition > 
TilePositionMap
typedef map< Unit *, Agent * > AgentMap
typedef map< Unit
*, BuildRefineryTask * > 
BuildRefineryTaskMap
typedef map< Unit
*, RecollectGasTask * > 
RecollectGasTaskMap
typedef map< Unit
*, RecollectMinTask * > 
RecollectMinTaskMap
typedef map< Unit *, TaskTypeSetTaskTargetMap
typedef map< unsigned long,
MapSector * > 
MapSectorMap
typedef map< unsigned long, int > DistanceMap
typedef map< unsigned long,
Quadrant * > 
QuadrantMap
typedef map< Unit *, UnitMemory * > UnitMemoryMap
typedef map< UnitType, int > UnitTypeCountMap
typedef list< Unit * > UnitList
typedef list< Agent * > AgentList
typedef list< Task * > TaskList
typedef list< MapSector * > SectorList
typedef list< UnitType > UnitTypeList

Enumerations

enum  AgentDisposition { BRAVE = 0, COWARD }
enum  TaskStatus {
  NOT_STARTED = 0, IN_PROGRESS, FINISHED, HALTED,
  CANCELLED
}
enum  TaskType {
  NULL_TASK = -1, TASK = 0, BUILD_TASK, BUILD_BARRACKS_TASK,
  BUILD_ENGINEERING_TASK, BUILD_FACTORY_TASK, BUILD_STARPORT_TASK, BUILD_SCIENCE_FACILITY_TASK,
  BUILD_ACADEMY_TASK, BUILD_SUPPLY_TASK, BUILD_REFINERY_TASK, BUILD_COMMAND_TASK,
  MOVE_COMMAND_TASK, ADDON_BUILD_TASK, ADDON_BUILD_COMSAT_TASK, ADDON_MACHINE_SHOP_TASK,
  ADDON_CONTROL_TOWER_TASK, TRAIN_TASK, TRAIN_WORKER_TASK, TRAIN_MARINE_TASK,
  TRAIN_MEDIC_TASK, TRAIN_SIEGE_TANK_TASK, TRAIN_WRAITH_TASK, REPAIR_TASK,
  RECOLLECT_TASK, RECOLLECT_MIN_TASK, RECOLLECT_GAS_TASK, EXPLORE_SECTOR_TASK,
  ASSAULT_SECTOR_TASK, ATTACK_UNIT_TASK, PROTECT_UNIT_TASK, SCAN_TARGET_TASK,
  RESEARCH_TASK
}
enum  AgentType {
  AGENT = 0, EXPLORER_AGENT, ATTACKER_AGENT, WORKER_AGENT,
  BUILDING_AGENT, BASE_AGENT
}

Define Documentation

#define ANALYSIS_FREQ   1
#define DEFAULT_TASK_VALIDATION_FREQ   100
#define DIST_APTITUDE_FACTOR   100.0
#define MAX_ACTIVE_ASSAULT_PRIORITY   120
#define MAX_ACTIVE_PROTECT_PRIORITY   110
#define MAX_ATTACK_PRIORITY   90
#define MAX_BUILD_PRIORITY   70
#define MAX_BUILD_RANGE   800
#define MAX_EXPLORE_PRIORITY   80
#define MAX_GAS_PRIORITY   40
#define MAX_MINERAL_PRIORITY   40
#define MAX_MOVE_PRIORITY   100
#define MAX_POS_DISTANCE   10000000
#define MAX_RESEARCH_PRIORITY   70
#define MAX_RESOURCE_RANGE   400
#define MAX_SCAN_PRIORITY   90
#define MAX_SUPPLY   400
#define MAX_THREAT_RANGE   400
#define MAX_TRAIN_PRIORITY   70
#define MIN_ACTIVE_ASSAULT_PRIORITY   110
#define MIN_ACTIVE_PROTECT_PRIORITY   100
#define MIN_ATTACK_PRIORITY   80
#define MIN_BUILD_PRIORITY   60
#define MIN_EXPLORE_PRIORITY   70
#define MIN_GAS_PRIORITY   30
#define MIN_MINERAL_PRIORITY   30
#define MIN_MOVE_PRIORITY   90
#define MIN_RESEARCH_PRIORITY   60
#define MIN_SCAN_PRIORITY   80
#define MIN_TASK_HOLD_FRAMES   50
#define MIN_TRAIN_PRIORITY   60
#define NO_APTITUDE   -1.0
#define PI   3.141592
#define SECTOR_FRAMES_PER_EXPLORE   500
#define SECTOR_FRAMES_PER_REFRESH   10
#define SECTOR_LENGTH   10
#define SECTOR_LENGTH_IN_PIXELS   320
#define SECTOR_STUCK_TIMEOUT   10000

Typedef Documentation

typedef list<Agent*> AgentList
typedef map<Unit*, Agent*> AgentMap
typedef set<Agent*> AgentSet
typedef set<AgentType> AgentTypeSet
typedef map<unsigned long, int> DistanceMap
typedef map<unsigned long, MapSector*> MapSectorMap
typedef set<MapSector*> MapSectorSet
typedef map<unsigned long, Quadrant*> QuadrantMap
typedef map<Unit*, RecollectGasTask*> RecollectGasTaskMap
typedef map<Unit*, RecollectMinTask*> RecollectMinTaskMap
typedef list<MapSector*> SectorList
typedef list<Task*> TaskList
typedef set<Task*> TaskSet
typedef map<Unit*, TaskTypeSet> TaskTargetMap
typedef set<TaskType> TaskTypeSet
typedef map<unsigned long, TilePosition> TilePositionMap
typedef set<TilePosition> TilePositionSet
typedef list<Unit*> UnitList
typedef map<Unit*, UnitMemory*> UnitMemoryMap
typedef set<UnitMemory*> UnitMemorySet
typedef set<Unit*> UnitSet
typedef map<UnitType, int> UnitTypeCountMap
typedef list<UnitType> UnitTypeList

Enumeration Type Documentation

Enumerator:
BRAVE 
COWARD 
enum AgentType
Enumerator:
AGENT 
EXPLORER_AGENT 
ATTACKER_AGENT 
WORKER_AGENT 
BUILDING_AGENT 
BASE_AGENT 
enum TaskStatus
Enumerator:
NOT_STARTED 
IN_PROGRESS 
FINISHED 
HALTED 
CANCELLED 
enum TaskType
Enumerator:
NULL_TASK 
TASK 
BUILD_TASK 
BUILD_BARRACKS_TASK 
BUILD_ENGINEERING_TASK 
BUILD_FACTORY_TASK 
BUILD_STARPORT_TASK 
BUILD_SCIENCE_FACILITY_TASK 
BUILD_ACADEMY_TASK 
BUILD_SUPPLY_TASK 
BUILD_REFINERY_TASK 
BUILD_COMMAND_TASK 
MOVE_COMMAND_TASK 
ADDON_BUILD_TASK 
ADDON_BUILD_COMSAT_TASK 
ADDON_MACHINE_SHOP_TASK 
ADDON_CONTROL_TOWER_TASK 
TRAIN_TASK 
TRAIN_WORKER_TASK 
TRAIN_MARINE_TASK 
TRAIN_MEDIC_TASK 
TRAIN_SIEGE_TANK_TASK 
TRAIN_WRAITH_TASK 
REPAIR_TASK 
RECOLLECT_TASK 
RECOLLECT_MIN_TASK 
RECOLLECT_GAS_TASK 
EXPLORE_SECTOR_TASK 
ASSAULT_SECTOR_TASK 
ATTACK_UNIT_TASK 
PROTECT_UNIT_TASK 
SCAN_TARGET_TASK 
RESEARCH_TASK 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines