From 728efbb79dd76a25283b02259d6344d85d8f447d Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 9 Mar 2021 21:45:42 +0000 Subject: some changes in class Vehicle --- Vehicle.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Vehicle.hpp') diff --git a/Vehicle.hpp b/Vehicle.hpp index 4e5e854..24cc505 100644 --- a/Vehicle.hpp +++ b/Vehicle.hpp @@ -1,6 +1,8 @@ #ifndef ASCIIROAD_VEHICLE_H #define ASCIIROAD_VEHICLE_H +class GameWorld; + class Vehicle { int type; int pos_y, pos_x; @@ -9,10 +11,7 @@ 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 */ + bool MoveRight(GameWorld *world); /* return false if not draw anything */ }; struct ll_vehicle { -- cgit v1.2.3-18-g5258