summaryrefslogtreecommitdiff
path: root/src/train.h
blob: ed0de942c1ef5cffdf4880bceb46a6f3a27a619b (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
26
27
#pragma once

#include "bitmap.h"

enum CarDirection {
	North,
	East,
	South,
	West
};

class Level;

class TrainCar {
public:
	TrainCar(int x, int y) 
		: x(x), y(y), m_sprite("../res/car.png") {}

	void update(Level&);
	void draw(Bitmap&, int, int);

	int x, y;
private:
	Bitmap m_sprite;
	int m_progress;
	CarDirection m_dir;
};