network_utils module

networking.network_utils.animate_unit(grid, id)

animate unit for client

Parameters
  • grid (Grid) -- grid

  • id (int) -- id of the unit to animate

networking.network_utils.move_unit(grid, id, movement)

move unit for client

Parameters
  • grid (Grid) -- grid

  • id (int) -- id of unit to remove

  • movement (float) -- what to move for the said unit (int or float, if float (=1.5) it means that there is a tick to wait before moving the unit)

networking.network_utils.remove_unit(grid, id)

remove unit for client

Parameters
  • grid (Grid) -- grid

  • id (int) -- id of unit to remove