diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 15:31:11 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-17 15:31:11 +0100 |
commit | 2fd013d7583e0388d50ff9895c5e474e2d76f79f (patch) | |
tree | 435e687675c620c93e44823dea606a30e20f3db4 /inc | |
parent | Work in progress, res now (diff) | |
download | 42-cub3d-2fd013d7583e0388d50ff9895c5e474e2d76f79f.tar.gz 42-cub3d-2fd013d7583e0388d50ff9895c5e474e2d76f79f.tar.bz2 42-cub3d-2fd013d7583e0388d50ff9895c5e474e2d76f79f.tar.xz 42-cub3d-2fd013d7583e0388d50ff9895c5e474e2d76f79f.tar.zst 42-cub3d-2fd013d7583e0388d50ff9895c5e474e2d76f79f.zip |
Better parse for textures and colors
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cub3d_defines.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index 14ec61a..e9a9a7d 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -57,18 +57,22 @@ ** ====== MAP ERROR MSG ====== */ +# define FT_ERR_ALLOCATE "allocation error" +# define FT_ERR_READ "read error" # define FT_ERR_NOT_A_CUB "given map is not a .cub" -# define FT_ERR_ARGS "too many arguments" +# define FT_ERR_ARGS "too many or to few 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_NOT_A_XPM "given texture is not a .xpm" +# define FT_ERR_COLOR_ALPHA "colors should be digits only" +# define FT_ERR_COLOR_MAX "colors should be maximum 255" +# define FT_ERR_COLOR_ARGS "colors three numbers separated by commas" # define FT_ERR_ILL_ENTRY "illegal map entry" +# define FT_ERR_UNFINISHED "no map" # 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" +# define FT_ERR_MAP_L_L "last line is invalid" /* ** ====== MISSING ERROR MSG ====== |