BWAPI
|
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 cumulativeMinerals; 00024 int cumulativeGas; 00025 int supplyTotal[3]; 00026 int supplyUsed[3]; 00027 00028 int allUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT]; 00029 int visibleUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT]; 00030 int completedUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT]; 00031 int deadUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT]; 00032 int killedUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT]; 00033 00034 int upgradeLevel[63]; 00035 bool hasResearched[47]; 00036 bool isResearching[47]; 00037 bool isUpgrading[63]; 00038 00039 int colorByte; 00040 int color; 00041 00042 int totalUnitScore; 00043 int totalKillScore; 00044 int totalBuildingScore; 00045 int totalRazingScore; 00046 int customScore; 00047 }; 00048 }