def get_clicked_hex(self, x, y): for hex in Hexagon.get_all_hexagons(): if hex.is_pathable(): hex.clear_select_color() x = int(x) y = int(y) c_hex_obj = controller_lib.Controller_get_clicked_hex(c_int(x), c_int(y)) return Hexagon.get_hexagon(c_hex_obj)
def get_clicked_hex(self, x, y): for hex in Hexagon.get_all_hexagons(): if hex.is_pathable(): hex.clear_select_color() x = int(x) y = int(y) c_hex_obj = controller_lib.Controller_get_clicked_hex( c_int(x), c_int(y)) return Hexagon.get_hexagon(c_hex_obj)
def get_base_hex(self): from hexagon import Hexagon hex_ptr = board_object_lib.BoardObject_get_base_hex(self._c_pointer) return Hexagon.get_hexagon(hex_ptr)
def get_hexagon(self, i, j): curr_c_hex = controller_lib.Controller_get_hexagon(c_int(i), c_int(j)) return Hexagon.get_hexagon(curr_c_hex)