Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)
Exemplo n.º 6
0
 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)