From 20e34b2e516dd690a2fff7f335739e299581da79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se>
Date: Wed, 27 Jun 2018 10:18:55 +0200
Subject: [PATCH] Fix snake case

---
 python-api-src/lib_unit.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/python-api-src/lib_unit.cpp b/python-api-src/lib_unit.cpp
index c3b71e1..8f06816 100644
--- a/python-api-src/lib_unit.cpp
+++ b/python-api-src/lib_unit.cpp
@@ -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() + "'>"; });
-- 
GitLab