diff options
author | Joursoir <chat@joursoir.net> | 2021-03-08 23:28:31 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-03-08 23:28:31 +0000 |
commit | d987781b24c6f505a61a01794b6bc76b07c9b25d (patch) | |
tree | 7f6e5a971d9b3cb19746c79780deff364b5dcde9 /Vehicle.hpp | |
parent | ac3ab1206a7bddec5312bf974479853429426dfa (diff) | |
download | ascii-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.hpp | 10 |
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 */ |