Skip to content
Snippets Groups Projects
Commit 366749a6 authored by Rojikku98's avatar Rojikku98
Browse files

Created IDAreplayobserver

parent 42b1e185
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,7 @@ public:
}
};
//todo fixa!
class PyReplayObserver : public sc2::ReplayObserver
{
public:
......
#include "IDAReplayObserver.h"
#pragma once
#include <deque>
#include <limits>
#include "Common.h"
#include "MapTools.h"
#include "BaseLocationManager.h"
#include "UnitInfoManager.h"
#include "BuildingPlacer.h"
#include "TechTree.h"
#include "TechTreeImproved.h"
#include "MetaType.h"
#include "Unit.h"
class IDAReplayObserver : public sc2::ReplayObserver
{
MapTools m_map;
BaseLocationManager m_bases;
UnitInfoManager m_unitInfo;
TechTree m_techTree;
BuildingPlacer m_buildingPlacer;
std::vector<Unit> m_allUnits;
std::vector<CCPosition> m_baseLocations;
void setUnits();
void OnError(const std::vector<sc2::ClientError> & client_errors,
const std::vector<std::string> & protocol_errors = {}) override;
public:
IDAReplayObserver();
void OnGameStart() override;
void OnStep() override;
const std::vector<Unit> & GetAllUnits() const;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment