home · contact · privacy
Make grids hexagonal, remove all diagonal movement penalty hassle.
[plomrogue] / src / server / yx_uint8.h
index 1463c5ff1e37cb494099610aeee6a907853c2516..ccfaa25ad336844f8dc6b71f9bb9264f2e7595c6 100644 (file)
 /* Return 1 if two yx_uint8 coordinates at "a" and "b" are equal, else 0. */
 extern uint8_t yx_uint8_cmp(struct yx_uint8 * a, struct yx_uint8 * b);
 
-/* Return yx_uint8 coordinate one step from "yx" in direction "dir" (numpad
- * digits: north '8', east: '6', etc.) If "dir" is invalid or would wrap the
- * move around the edge of a 2^16x2^16 cells field, "yx" remains unchanged.
+/* Return yx_uint8 coordinate one step from "yx" in direction "dir" ('e':
+ * northeast, 'd': east, 'c': south-east, 'x': south-west, 's': west, ' 'w':
+ * north-west). If "dir" is invalid or would wrap the move around the edge of a
+ * 2^8x2^8 cells field, "yx" remains unchanged.
  */
 extern struct yx_uint8 mv_yx_in_dir(char dir, struct yx_uint8 yx);