summaryrefslogtreecommitdiffstats
path: root/Vehicle.hpp
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-03-08 23:28:31 +0000
committerJoursoir <chat@joursoir.net>2021-03-08 23:28:31 +0000
commitd987781b24c6f505a61a01794b6bc76b07c9b25d (patch)
tree7f6e5a971d9b3cb19746c79780deff364b5dcde9 /Vehicle.hpp
parentac3ab1206a7bddec5312bf974479853429426dfa (diff)
downloadascii-road-d987781b24c6f505a61a01794b6bc76b07c9b25d.tar.gz
ascii-road-d987781b24c6f505a61a01794b6bc76b07c9b25d.tar.bz2
ascii-road-d987781b24c6f505a61a01794b6bc76b07c9b25d.zip
add infinity vehicle ride
Diffstat (limited to 'Vehicle.hpp')
-rw-r--r--Vehicle.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Vehicle.hpp b/Vehicle.hpp
index 418a532..4e5e854 100644
--- a/Vehicle.hpp
+++ b/Vehicle.hpp
@@ -9,8 +9,18 @@ public:
: type(a_type), pos_y(a_y), pos_x(a_x) { }
~Vehicle() { }
+ int GetLength();
+
void MoveRight() { pos_x++; }
bool Draw(int bound_x); /* return false if not draw anything */
};
+struct ll_vehicle {
+ Vehicle *data;
+ struct ll_vehicle *next;
+
+ ll_vehicle(Vehicle *a_data, struct ll_vehicle *a_ptr)
+ : data(a_data), next(a_ptr) { }
+};
+
#endif /* ASCIIROAD_VEHICLE_H */