summaryrefslogtreecommitdiffstats
path: root/Vehicle.cpp
blob: df1e1e3a85324086c578e6849d6f4ea9b4c3edcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <ncurses.h>

#include "Vehicle.hpp"
#include "veh_models.hpp"
#include "GameWorld.hpp"

bool Vehicle::MoveRight(GameWorld *world)
{
	const struct object_info *car = &veh_store[type];
	int h = car->height, i;
	for(i = 0; i < h; i++)
		world->RedrawCh(pos_y - i, pos_x);

	pos_x++;
	return world->Draw(car, pos_y, pos_x, false);
}