From 2c12d19204aa198bf8537bcdb137b40f0c7317e9 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sun, 25 Sep 2016 18:38:34 +0200 Subject: Initial --- AmpelJonas/cTrafficLight.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 AmpelJonas/cTrafficLight.h (limited to 'AmpelJonas/cTrafficLight.h') diff --git a/AmpelJonas/cTrafficLight.h b/AmpelJonas/cTrafficLight.h new file mode 100644 index 0000000..c17cdb7 --- /dev/null +++ b/AmpelJonas/cTrafficLight.h @@ -0,0 +1,27 @@ +#pragma once +#define _TL_SOUTH_ 0 +#define _TL_NORTH_ 1 +#define _TL_EAST_ 2 +#define _TL_WEST_ 3 + +#define _TL_COL_GREEN_ 0 +#define _TL_COL_YELLOW_ 1 +#define _TL_COL_RED_ 2 +#define _TL_COL_RED_YELLOW_ 3 + +#include "stdafx.h" + +class cTrafficLight +{ +public: + cTrafficLight(int _type, int _startphase); + ~cTrafficLight(); + + void next(); + + cObject *getObject(); +private: + cObject *tl; + int iPhase; + int iType; +}; \ No newline at end of file -- cgit v1.2.3