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

Fix snake case

parent ec8d3777
No related branches found
No related tags found
No related merge requests found
......@@ -27,14 +27,14 @@ void define_unit(py::module & m)
.def_property_readonly("training", &Unit::isTraining)
.def_property_readonly("constructing", &Unit::isConstructing)
.def("stop", &Unit::stop)
.def("attackUnit", &Unit::attackUnit)
.def("attackMove", &Unit::attackMove)
.def("attack_unit", &Unit::attackUnit)
.def("attack_move", &Unit::attackMove)
.def("move", py::overload_cast<const CCPosition &>(&Unit::move, py::const_))
.def("move", py::overload_cast<const CCTilePosition &>(&Unit::move, py::const_))
.def("rightClick", &Unit::rightClick)
.def("right_click", &Unit::rightClick)
.def("repair", &Unit::repair)
.def("build", &Unit::build)
.def("buildTarget", &Unit::buildTarget)
.def("build_target", &Unit::buildTarget)
.def("train", &Unit::train)
.def("morph", &Unit::morph)
.def("__repr__", [](const Unit & unit) { return "<Unit of type: '" + unit.getType().getName() + "'>"; });
......
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