summaryrefslogtreecommitdiffstats
path: root/Vehicle.hpp
blob: 24cc505d0fa6669cdb1d329331654e6db10b5c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ASCIIROAD_VEHICLE_H
#define ASCIIROAD_VEHICLE_H

class GameWorld;

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() { }

	bool MoveRight(GameWorld *world); /* 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 */