diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2016-09-25 18:38:34 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2016-09-25 18:38:34 +0200 |
commit | 2c12d19204aa198bf8537bcdb137b40f0c7317e9 (patch) | |
tree | 2b0ea3e0feb0df50449fdd99e0b1dfa3a2f82c16 /AmpelJonas/cTrafficLight.h | |
download | termgl-2c12d19204aa198bf8537bcdb137b40f0c7317e9.tar.gz |
Initial
Diffstat (limited to 'AmpelJonas/cTrafficLight.h')
-rw-r--r-- | AmpelJonas/cTrafficLight.h | 27 |
1 files changed, 27 insertions, 0 deletions
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 |