From 030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 15 Feb 2020 20:29:21 +0100 Subject: Work in progress, res now --- inc/cub3d_defines.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'inc/cub3d_defines.h') diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 6f8de65..14ec61a 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -54,15 +54,26 @@ # endif /* -** ====== ERROR MSG ====== +** ====== MAP ERROR MSG ====== */ # define FT_ERR_NOT_A_CUB "given map is not a .cub" -# define FT_ERR_MAP_L_L "last line is invalid or contains illegal char" -# define FT_ERR_UNFINISHED "unexpected file end" +# define FT_ERR_ARGS "too many arguments" +# define FT_ERR_RES_SMALL "resolution is too small" +# define FT_ERR_RES_ALPHA "resolution should be digits only" +# define FT_ERR_MAP_L_L "last line is invalid" +# define FT_ERR_UNFINISHED "no map" # define FT_ERR_READ "read error" # define FT_ERR_ILL_ENTRY "illegal map entry" # define FT_ERR_ALR_SET "duplicate entry" +# define FT_ERR_ALLOCATE "allocation error" +# define FT_ERR_ILL_MAP "map contains illegal char" +# define FT_ERR_MULT_SPAWN "multiple spawn points" + +/* +** ====== MISSING ERROR MSG ====== +*/ + # define FT_ERR_MISS_ELEMENT "Missing element:" # define FT_ERR_MISS_NORTH "north side texture" # define FT_ERR_MISS_SOUTH "south side texture" @@ -71,7 +82,7 @@ # define FT_ERR_MISS_SPRITE "sprite texture" # define FT_ERR_MISS_RESOLUTION "resolution" # define FT_ERR_MISS_FLOOR_C "floor color" -# define FT_ERR_MISS_CEIL_C "floor color" +# define FT_ERR_MISS_CEIL_C "ceiling color" # define FT_ERR_MISS_PLAYER_SPAWN "player spawn" # endif -- cgit v1.2.3