This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
BWMirror-Generator/c/BWAPI/Client/PlayerData.h

57 lines
1.2 KiB
C
Raw Normal View History

2014-08-05 04:43:14 -04:00
#pragma once
namespace BWAPI
{
struct PlayerData
{
char name[25];
int race;
int type;
int force;
bool isAlly[12];
bool isEnemy[12];
bool isNeutral;
int startLocationX;
int startLocationY;
bool isVictorious;
bool isDefeated;
bool leftGame;
bool isParticipating;
int minerals;
int gas;
int gatheredMinerals;
int gatheredGas;
int repairedMinerals;
int repairedGas;
int refundedMinerals;
int refundedGas;
int supplyTotal[3];
int supplyUsed[3];
int allUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
int visibleUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
int completedUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
int deadUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
int killedUnitCount[BWAPI_UNIT_TYPE_MAX_COUNT];
int upgradeLevel[63];
bool hasResearched[47];
bool isResearching[47];
bool isUpgrading[63];
int colorByte;
int color;
int totalUnitScore;
int totalKillScore;
int totalBuildingScore;
int totalRazingScore;
int customScore;
int maxUpgradeLevel[61];
bool isResearchAvailable[44];
bool isUnitAvailable[228];
};
}