summaryrefslogtreecommitdiffstats
path: root/Vehicle.hpp
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-03-09 21:45:42 +0000
committerJoursoir <chat@joursoir.net>2021-03-09 21:45:42 +0000
commit728efbb79dd76a25283b02259d6344d85d8f447d (patch)
tree5da84537a2eba04d736eaa398d3269444d94b37f /Vehicle.hpp
parenta7b9aa288a65ef456ec3795435c91eba58f2a098 (diff)
downloadascii-road-728efbb79dd76a25283b02259d6344d85d8f447d.tar.gz
ascii-road-728efbb79dd76a25283b02259d6344d85d8f447d.tar.bz2
ascii-road-728efbb79dd76a25283b02259d6344d85d8f447d.zip
some changes in class Vehicle
Diffstat (limited to 'Vehicle.hpp')
-rw-r--r--Vehicle.hpp7
1 files changed, 3 insertions, 4 deletions
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 {