summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-03-09 18:18:11 +0000
committerJoursoir <chat@joursoir.net>2021-03-09 18:18:11 +0000
commitcd445cccc1ccd135d006f6fbb519aeda8f90f133 (patch)
tree0c649540e0d0ae03a06c9a3ab4038993cce10fc4
parentd987781b24c6f505a61a01794b6bc76b07c9b25d (diff)
downloadascii-road-cd445cccc1ccd135d006f6fbb519aeda8f90f133.tar.gz
ascii-road-cd445cccc1ccd135d006f6fbb519aeda8f90f133.tar.bz2
ascii-road-cd445cccc1ccd135d006f6fbb519aeda8f90f133.zip
change model structure
-rw-r--r--bg_models.hpp62
-rw-r--r--models.hpp13
-rw-r--r--veh_models.hpp16
3 files changed, 79 insertions, 12 deletions
diff --git a/bg_models.hpp b/bg_models.hpp
new file mode 100644
index 0000000..119d99b
--- /dev/null
+++ b/bg_models.hpp
@@ -0,0 +1,62 @@
+#ifndef ASCIIROAD_BGMODELS_H
+#define ASCIIROAD_BGMODELS_H
+
+#include "models.hpp"
+
+enum background_types {
+ bg_ftree,
+ bg_stree,
+ bg_tree_types_max,
+ bg_bridge = bg_tree_types_max
+};
+
+const char * const bg_ftree_model[] = {
+ " _-_ ",
+ " /~~ ~~\\ ",
+ " /~~ ~~\\ ",
+ "{ }",
+ " \\ _- -_ / ",
+ " ~ \\\\ // ~ ",
+ " | | ",
+ " | | ",
+ " // \\\\ "
+};
+
+const char * const bg_stree_model[] = {
+ " _____ ",
+ " __/~~~~~\\__ ",
+ " _/~~ ~~\\_ ",
+ " /~ ~\\ ",
+ "{ }",
+ " \\__\\~ ~/__/ ",
+ " \\_ _/ ",
+ " \\\\ // ",
+ " | | ",
+ " | | ",
+ " | | ",
+ " // \\\\ "
+};
+
+const char * const bg_bridge_model[] = {
+ " .. ",
+ " [] ",
+ " ,:[]:_ ",
+ " ,-: :[]: :-. ",
+ " ,.': : :[]: : :`._ ",
+ " _,-: : : : :[]: : : : :-._ ",
+ "___.-: : : : : : :[]: : : : : : :-.____",
+ "_:_:_:_:_:_:_:_:_:[]:_:_:_:_:_:_:_:_:_:",
+ "!!!!!!!!!!!!!!!!!![]!!!!!!!!!!!!!!!!!!!",
+ "^^^^^^^^^^^^^^^^^^[]^^^^^^^^^^^^^^^^^^^",
+ " [] ",
+ " [] ",
+ " [] "
+};
+
+const struct object_info bg_store[] = {
+ {bg_ftree_model, 17, 9},
+ {bg_stree_model, 19, 12},
+ {bg_bridge_model, 39, 13}
+};
+
+#endif /* ASCIIROAD_BGMODELS_H */ \ No newline at end of file
diff --git a/models.hpp b/models.hpp
new file mode 100644
index 0000000..6444123
--- /dev/null
+++ b/models.hpp
@@ -0,0 +1,13 @@
+#ifndef ASCIIROAD_MODELS_H
+#define ASCIIROAD_MODELS_H
+
+#define SUPPORT_CHAR ' '
+/* SUPPORT_CHAR use for support rectangular array */
+
+struct object_info {
+ const char * const *model;
+ int length;
+ int height;
+};
+
+#endif /* ASCIIROAD_MODELS_H */
diff --git a/veh_models.hpp b/veh_models.hpp
index 165715a..3c03eee 100644
--- a/veh_models.hpp
+++ b/veh_models.hpp
@@ -1,9 +1,9 @@
#ifndef ASCIIROAD_VEHMODELS_H
#define ASCIIROAD_VEHMODELS_H
-#define SUPPORT_CHAR ' '
+#include "models.hpp"
-enum vehicle_types {
+enum veh_types {
veh_default,
veh_ems,
veh_cabriolet,
@@ -16,21 +16,13 @@ enum vehicle_types {
veh_bicycle,
veh_manipulator,
veh_camper,
- veh_types_max
+ veh_types_max,
};
-struct vehicle_info {
- const char * const *model;
- int length;
- int height;
-};
-
-/* SUPPORT_CHAR use only for support rectangular array */
const char * const veh_default_model[] = {
" ______ ",
" /|_||_\\`.__ ",
"( _ _ _\\",
- //"(___________\\",
"=`-(_)--(_)-'"
};
@@ -117,7 +109,7 @@ const char * const veh_camper_model[] = {
"`--(_)-------(_)-'"
};
-const struct vehicle_info veh_info[] = {
+const struct object_info veh_store[] = {
{veh_default_model, 13, 4},
{veh_ems_model, 22, 6},
{veh_cabriolet_model, 18, 4},