BWAPI::getStaticGameData

getStaticGameData function

Retrieves the StaticGameData structure.

StaticGameData *getStaticGameData();
  

Parameters

None.

Return Value

Returns a pointer to the StaticGameData structure.

Remarks

A connection is needed to retrieve this pointer. If you call getStaticGameData without having established a connection, an exception will be thrown.

The location of the StaticGameData structure does not change during an established connection. You may want to save this pointer once after a successful connection and use the saved pointer, instead calling getStaticGameData over and over again.