diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 20:29:21 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 20:29:21 +0100 |
commit | 030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa (patch) | |
tree | aa661716c5ffdd844e41bccb9be833637eaaa3b8 /inc/cub3d_defines.h | |
parent | In progress (diff) | |
download | 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.gz 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.bz2 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.xz 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.tar.zst 42-cub3d-030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa.zip |
Work in progress, res now
Diffstat (limited to 'inc/cub3d_defines.h')
-rw-r--r-- | inc/cub3d_defines.h | 19 |
1 files changed, 15 insertions, 4 deletions
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 |