summaryrefslogtreecommitdiffstats
path: root/Vehicle.hpp
blob: 418a5326b43c6d4b2452f94f31051429b12d81dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef ASCIIROAD_VEHICLE_H
#define ASCIIROAD_VEHICLE_H

class Vehicle {
	int type;
	int pos_y, pos_x;
public:
	Vehicle(int a_type, int a_y, int a_x)
		: type(a_type), pos_y(a_y), pos_x(a_x) { }
	~Vehicle() { }

	void MoveRight() { pos_x++; }
	bool Draw(int bound_x); /* return false if not draw anything */
};

#endif /* ASCIIROAD_VEHICLE_H */