summaryrefslogtreecommitdiffstats
path: root/veh_models.hpp
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 /veh_models.hpp
parentd987781b24c6f505a61a01794b6bc76b07c9b25d (diff)
downloadascii-road-cd445cccc1ccd135d006f6fbb519aeda8f90f133.tar.gz
ascii-road-cd445cccc1ccd135d006f6fbb519aeda8f90f133.tar.bz2
ascii-road-cd445cccc1ccd135d006f6fbb519aeda8f90f133.zip
change model structure
Diffstat (limited to 'veh_models.hpp')
-rw-r--r--veh_models.hpp16
1 files changed, 4 insertions, 12 deletions
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},