BWAPI
Classes | Defines | Functions | Variables
Undermind/proxy/cpp/ClientModule/ClientModule.cpp File Reference
#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>
Include dependency graph for ClientModule.cpp:

Classes

struct  WSAStartupper

Defines

#define PORTNUM   12345

Functions

NetStreaminitSocket ()
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 Documentation

#define PORTNUM   12345

port to connect to on the java side


Function Documentation

bool checkIfBattleOk ( )

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

void handleCommands ( const messages::FrameCommands commands)

Establishes a connection with the ProxyBot.

throws if the connection fails

Here is the call graph for this function:

Here is the caller graph for this function:

int latency ( Latency::Enum  lat)
void marshall_counts ( Player player,
int(Player::*)(UnitType) const  countOf,
google::protobuf::RepeatedPtrField< messages::UnitTypeIntPair > *  target 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

void set_bit ( google::protobuf::uint32 field,
int  bit,
bool  v 
) [inline]

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int badTimes = 0
bool battleOk = true
bool drawOk = true
bool hadLowSupply = false
bool hadSomeSupply = false
long totalFrames = 0
long totalTime = 0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines