Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyCommandCenter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Starcraft AI Course
PyCommandCenter
Commits
366749a6
Commit
366749a6
authored
4 years ago
by
Rojikku98
Browse files
Options
Downloads
Patches
Plain Diff
Created IDAreplayobserver
parent
42b1e185
No related branches found
No related tags found
1 merge request
!6
Replays
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python-api-src/library.h
+1
-0
1 addition, 0 deletions
python-api-src/library.h
src/IDAReplayObserver.cpp
+1
-0
1 addition, 0 deletions
src/IDAReplayObserver.cpp
src/IDAReplayObserver.h
+41
-0
41 additions, 0 deletions
src/IDAReplayObserver.h
with
43 additions
and
0 deletions
python-api-src/library.h
+
1
−
0
View file @
366749a6
...
...
@@ -61,6 +61,7 @@ public:
}
};
//todo fixa!
class
PyReplayObserver
:
public
sc2
::
ReplayObserver
{
public:
...
...
This diff is collapsed.
Click to expand it.
src/IDAReplayObserver.cpp
0 → 100644
+
1
−
0
View file @
366749a6
#include
"IDAReplayObserver.h"
This diff is collapsed.
Click to expand it.
src/IDAReplayObserver.h
0 → 100644
+
41
−
0
View file @
366749a6
#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
;
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment