home · contact · privacy
Maps are always squares, therefore define only their edge lengths.
[plomrogue] / src / common / map.h
index cac29dc8f111686be4eb3e4ed699c8c2e7422eb0..4a6d04126ad49d01e925b783e2e5136725c8803a 100644 (file)
@@ -1,19 +1,19 @@
 /* src/common/map.h
  *
- * Struct for the game map.
+ * Game map.
  */
 
 #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 */
 };