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/Client.h

35 lines
567 B
C
Raw Normal View History

2014-08-05 04:43:14 -04:00
#pragma once
#include <windows.h>
#include "GameData.h"
#include "GameImpl.h"
#include "ForceImpl.h"
#include "PlayerImpl.h"
#include "UnitImpl.h"
#include "GameTable.h"
namespace BWAPI
{
class Client
{
public:
Client();
~Client();
GameData* data;
bool isConnected();
bool connect();
void disconnect();
void update();
private:
HANDLE pipeObjectHandle;
HANDLE mapFileHandle;
HANDLE gameTableFileHandle;
GameTable* gameTable;
bool connected;
bool showedErrorBox;
};
extern Client BWAPIClient;
}