aboutsummaryrefslogtreecommitdiffstats
path: root/inc/cub3d_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cub3d_defines.h')
-rw-r--r--inc/cub3d_defines.h38
1 files changed, 36 insertions, 2 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index e6c98c5..0c9a294 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -1,3 +1,15 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* cub3d_defines.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/15 15:40:25 by rbousset #+# #+# */
+/* Updated: 2020/02/15 15:40:27 by rbousset ### ########lyon.fr */
+/* */
+/* ************************************************************************** */
+
# ifndef CUB3D_DEFINES_H
# define CUB3D_DEFINES_H
@@ -42,7 +54,29 @@
# endif
/*
-** ====== ERROR MSG ======
+** ====== 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 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_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_UNFINISHED "no map"
+# define FT_ERR_MAP_LEN "map length inconsistency"
+# define FT_ERR_ILL_ENTRY "illegal map entry"
+# define FT_ERR_ALR_SET "duplicate entry"
+# 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 ======
*/
# define FT_ERR_MISS_ELEMENT "Missing element:"
@@ -53,7 +87,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