From cb7af3f4cac90f95926477b4001f9f80037568d5 Mon Sep 17 00:00:00 2001 From: Jun Zhang Date: Sun, 30 Jan 2022 12:30:02 +0800 Subject: refactor: adjust the project infra. (#1) * refactor: adjust the project infra. This patch adds cmake build system to the project, and adjust infrastructure stuff. Signed-off-by: Jun Zhang * fix: remove compiler flags that only exist in GCC. Signed-off-by: Jun Zhang --- train.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 train.h (limited to 'train.h') diff --git a/train.h b/train.h deleted file mode 100644 index 249d92e..0000000 --- a/train.h +++ /dev/null @@ -1,27 +0,0 @@ -#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("car.png") {} - - void update(Level&); - void draw(Bitmap&, int, int); - - int x, y; -private: - Bitmap m_sprite; - int m_progress; - CarDirection m_dir; -}; \ No newline at end of file -- cgit v1.2.3