summaryrefslogtreecommitdiffstats
path: root/Vehicle.hpp
diff options
context:
space:
mode:
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 */