X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fcommon%2Fmap.h;h=2a37793979d85fbba6c91ad6640b06269eb6f890;hb=21ba1d03b1e883564d301c2781039017dd704b20;hp=cac29dc8f111686be4eb3e4ed699c8c2e7422eb0;hpb=dd9d65ee727ac7e95801da0f8b5bae7009811802;p=plomrogue diff --git a/src/common/map.h b/src/common/map.h index cac29dc..2a37793 100644 --- a/src/common/map.h +++ b/src/common/map.h @@ -1,19 +1,23 @@ /* src/common/map.h * - * Struct for the game map. + * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3 + * or any later version. For details on its copyright, license, and warranties, + * see the file NOTICE in the root directory of the PlomRogue source package. + * + * Game map. */ #ifndef MAP_H #define MAP_H -#include "yx_uint16.h" /* yx_uint16 struct */ +#include /* 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, i.e. both height and width */ };