BWAPI
trunk/bwapi/include/BWAPI/Client/PlayerData.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace BWAPI
00004 {
00005   struct PlayerData
00006   {
00007     char name[25];
00008     int  race;
00009     int  type;
00010     int  force;
00011     bool isAlly[12];
00012     bool isEnemy[12];
00013     bool isNeutral;
00014     int  startLocationX;
00015     int  startLocationY;
00016     bool isVictorious;
00017     bool isDefeated;
00018     bool leftGame;
00019     bool isParticipating;
00020 
00021     int minerals;
00022     int gas;
00023     int gatheredMinerals;
00024     int gatheredGas;
00025     int repairedMinerals;
00026     int repairedGas;
00027     int refundedMinerals;
00028     int refundedGas;
00029     int supplyTotal[3];
00030     int supplyUsed[3];
00031 
00032     int allUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
00033     int visibleUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
00034     int completedUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
00035     int deadUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
00036     int killedUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
00037 
00038     int  upgradeLevel[63];
00039     bool hasResearched[47];
00040     bool isResearching[47];
00041     bool isUpgrading[63];
00042 
00043     int colorByte;
00044     int color;
00045 
00046     int totalUnitScore;
00047     int totalKillScore;
00048     int totalBuildingScore;
00049     int totalRazingScore;
00050     int customScore;
00051 
00052     int   maxUpgradeLevel[61];
00053     bool  isResearchAvailable[44];
00054     bool  isUnitAvailable[228];
00055   };
00056 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines