BWAPI
|
#include "ClientModule.h"
#include <boost/thread/thread.hpp>
#include <boost/foreach.hpp>
#include <cstdio>
#include <winsock.h>
#include <stdio.h>
#include <sstream>
#include <fstream>
#include <ctime>
#include "netstream.h"
#include "md5.h"
#include <iostream>
#include <windows.h>
Classes | |
struct | WSAStartupper |
Defines | |
#define | PORTNUM 12345 |
Functions | |
NetStream * | initSocket () |
void | doDynamicTerrain (messages::FrameMessage &msg) |
void | handleCommands (const messages::FrameCommands &commands) |
void | exportTypeData (messages::StaticGameData &msg) |
void | set_bit (google::protobuf::uint32 &field, int bit, bool v) |
messages::Race | race2Race (Race r) |
int | latency (Latency::Enum lat) |
messages::UnitSizeType | size2Size (UnitSizeType sz) |
messages::ExplosionType | ex2ex (ExplosionType sz) |
messages::DamageType | dam2dam (DamageType sz) |
void | marshall_counts (Player *player, int(Player::*countOf)(UnitType) const, google::protobuf::RepeatedPtrField< messages::UnitTypeIntPair > *target) |
bool | checkIfBattleOk () |
Variables | |
bool | hadLowSupply = false |
bool | hadSomeSupply = false |
bool | battleOk = true |
bool | drawOk = true |
struct WSAStartupper | WSAStartupper |
int | badTimes = 0 |
long | totalTime = 0 |
long | totalFrames = 0 |
#define PORTNUM 12345 |
port to connect to on the java side
bool checkIfBattleOk | ( | ) |
void doDynamicTerrain | ( | messages::FrameMessage & | msg | ) |
void exportTypeData | ( | messages::StaticGameData & | msg | ) |
void handleCommands | ( | const messages::FrameCommands & | commands | ) |
NetStream * initSocket | ( | ) |
Establishes a connection with the ProxyBot.
throws if the connection fails
int latency | ( | Latency::Enum | lat | ) |
void marshall_counts | ( | Player * | player, |
int(Player::*)(UnitType) const | countOf, | ||
google::protobuf::RepeatedPtrField< messages::UnitTypeIntPair > * | target | ||
) |
messages::Race race2Race | ( | Race | r | ) |
void set_bit | ( | google::protobuf::uint32 & | field, |
int | bit, | ||
bool | v | ||
) | [inline] |
int badTimes = 0 |
bool battleOk = true |
bool drawOk = true |
bool hadLowSupply = false |
bool hadSomeSupply = false |
long totalFrames = 0 |
long totalTime = 0 |
struct WSAStartupper WSAStartupper |