From 2c12d19204aa198bf8537bcdb137b40f0c7317e9 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 25 Sep 2016 18:38:34 +0200 Subject: Initial --- AmpelJonas/cCar.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 AmpelJonas/cCar.h (limited to 'AmpelJonas/cCar.h') diff --git a/AmpelJonas/cCar.h b/AmpelJonas/cCar.h new file mode 100644 index 0000000..c505079 --- /dev/null +++ b/AmpelJonas/cCar.h @@ -0,0 +1,22 @@ +#pragma once +#include "stdafx.h" + +#define _CAR_DIR_SOUTH 2 +#define _CAR_DIR_NORTH 4 +#define _CAR_DIR_EAST 1 +#define _CAR_DIR_WEST 3 + +class cCar +{ +public: + cCar(int _direction, int *_phase); + ~cCar(); + + cObject *getObject(); + + void drive(); +private: + cObject *car; + int iDirection; + int *pPhase; +}; \ No newline at end of file -- cgit v1.2.3