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
17318cba
Commit
17318cba
authored
6 years ago
by
David Bergström
Browse files
Options
Downloads
Patches
Plain Diff
Add small changes
parent
0637111d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python-api-src/lib_util.cpp
+2
-2
2 additions, 2 deletions
python-api-src/lib_util.cpp
src/BaseLocation.h
+1
-1
1 addition, 1 deletion
src/BaseLocation.h
with
3 additions
and
3 deletions
python-api-src/lib_util.cpp
+
2
−
2
View file @
17318cba
...
...
@@ -8,7 +8,7 @@ void define_util(py::module & mod)
/*
TODO:
Maybe should be included in
CCPosition
instead?
Maybe should be included in
Point
instead?
CCTilePosition GetTilePosition(const CCPosition & pos);
CCPosition GetPosition(const CCTilePosition & tile);
...
...
@@ -17,7 +17,7 @@ void define_util(py::module & mod)
UnitType GetSupplyProvider(const CCRace & race, IDABot & bot);
*/
// Redun
t
ant, just call Race.Terran.name instead
// Redun
d
ant, just call Race.Terran.name instead
//m.def("get_string_from_race", &Util::GetStringFromRace);
m
.
def
(
"dist"
,
py
::
overload_cast
<
const
Unit
&
,
const
Unit
&>
(
&
Util
::
Dist
));
m
.
def
(
"dist"
,
py
::
overload_cast
<
const
Unit
&
,
const
CCPosition
&>
(
&
Util
::
Dist
));
...
...
This diff is collapsed.
Click to expand it.
src/BaseLocation.h
+
1
−
1
View file @
17318cba
...
...
@@ -10,7 +10,7 @@ class IDABot;
class
BaseLocation
{
IDABot
&
m_bot
;
IDABot
&
m_bot
;
DistanceMap
m_distanceMap
;
CCTilePosition
m_depotPosition
;
...
...
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