From 3a8572e81dcde7660e2ca747fa9b9cf127b7788d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se>
Date: Tue, 14 Aug 2018 09:19:26 +0200
Subject: [PATCH] Disable the refinery fetching method for now

---
 docs/perception.rst                    | 2 --
 python-api-src/lib_building_placer.cpp | 5 +++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/docs/perception.rst b/docs/perception.rst
index 2aa69cb90..3cbb39b68 100644
--- a/docs/perception.rst
+++ b/docs/perception.rst
@@ -114,8 +114,6 @@ DistanceMap
 BuildingPlacer
 --------------
 
-.. TODO: get_refinery_position should work on all bases
-
 .. autoclass:: library.BuildingPlacer 	
    :members:
    :undoc-members:
diff --git a/python-api-src/lib_building_placer.cpp b/python-api-src/lib_building_placer.cpp
index 7328973d8..0102dd8a3 100644
--- a/python-api-src/lib_building_placer.cpp
+++ b/python-api-src/lib_building_placer.cpp
@@ -9,6 +9,7 @@ void define_building_placer(py::module & m)
         .def("can_build_here_with_spaces", &BuildingPlacer::canBuildHereWithSpace, "x"_a, "y"_a, "unit_type"_a, "build_distance"_a)
         .def("get_build_location_near", &BuildingPlacer::getBuildLocationNear, "point2di"_a, "unit_type"_a, "build_distance"_a)
         .def("reserve_tiles", &BuildingPlacer::reserveTiles, "x"_a, "y"_a, "width"_a, "height"_a)
-        .def("free_tiles", &BuildingPlacer::freeTiles, "x"_a, "y"_a, "width"_a, "height"_a)
-        .def("get_refinery_position", &BuildingPlacer::getRefineryPosition);
+        .def("free_tiles", &BuildingPlacer::freeTiles, "x"_a, "y"_a, "width"_a, "height"_a);
+        // TODO: Update this method to find refinery positions outside the first base
+        //.def("get_refinery_position", &BuildingPlacer::getRefineryPosition);
 }
\ No newline at end of file
-- 
GitLab