Skip to content
Snippets Groups Projects
Commit 835d454e authored by David Bergström's avatar David Bergström
Browse files

Fix some spelling and add names for parameters

parent a5acc1ab
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,6 @@ void define_base_location(py::module & m)
.def_property_readonly("base_locations", &BaseLocationManager::getBaseLocations, py::return_value_policy::reference)
.def_property_readonly("starting_base_locations", &BaseLocationManager::getStartingBaseLocations, py::return_value_policy::reference)
.def("get_occupied_base_locations", &BaseLocationManager::getOccupiedBaseLocations, py::return_value_policy::reference)
.def("get_player_starting_base_locations", &BaseLocationManager::getPlayerStartingBaseLocation, py::return_value_policy::copy)
.def("get_player_starting_base_location", &BaseLocationManager::getPlayerStartingBaseLocation, py::return_value_policy::copy)
.def("get_next_expansion", &BaseLocationManager::getNextExpansion, py::return_value_policy::copy);
}
\ No newline at end of file
......@@ -33,7 +33,7 @@ void define_unit(py::module & m)
.def("move", py::overload_cast<const CCTilePosition &>(&Unit::move, py::const_))
.def("right_click", &Unit::rightClick)
.def("repair", &Unit::repair)
.def("build", &Unit::build)
.def("build", &Unit::build, "building_type"_a, "position"_a)
.def("build_target", &Unit::buildTarget)
.def("train", &Unit::train)
.def("morph", &Unit::morph)
......
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