home · contact · privacy
Maps are always squares, therefore define only their edge lengths.
[plomrogue] / src / common / map.h
index 8d454ca7ab1b040464a3f5a0ab7a86c6824697fb..4a6d04126ad49d01e925b783e2e5136725c8803a 100644 (file)
@@ -6,13 +6,14 @@
 #ifndef MAP_H
 #define MAP_H
 
-#include "yx_uint16.h" /* yx_uint16 struct */
+#include <stdint.h> /* uint16_t */
+
 
 
 struct Map
 {
-    struct yx_uint16 size;   /* map's height/width in number of cells */
     char * cells;            /* sequence of bytes encoding map cells */
+    uint16_t length;         /* map's edge length */
 };