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/cPeasantTrafficLight.h | |
download | termgl-2c12d19204aa198bf8537bcdb137b40f0c7317e9.tar.gz |
Initial
Diffstat (limited to 'AmpelJonas/cPeasantTrafficLight.h')
-rw-r--r-- | AmpelJonas/cPeasantTrafficLight.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/AmpelJonas/cPeasantTrafficLight.h b/AmpelJonas/cPeasantTrafficLight.h new file mode 100644 index 0000000..88ec99b --- /dev/null +++ b/AmpelJonas/cPeasantTrafficLight.h @@ -0,0 +1,30 @@ +#pragma once +#include "stdafx.h" + +#define _CTL_COL_RED 0 +#define _CTL_COL_GREEN 1 + +//Counted clockwise, starting with the upper tl of west lane +#define _CTL_1 2 +#define _CTL_2 1 +#define _CTL_3 3 +#define _CTL_4 4 +#define _CTL_5 6 +#define _CTL_6 5 +#define _CTL_7 7 +#define _CTL_8 8 + +class cPeasantTrafficLight +{ +public: + cPeasantTrafficLight(int _type, int _startphase); + ~cPeasantTrafficLight(); + + void next(); + + cObject *getObject(); +private: + cObject *tl; + int iPhase; + int iType; +};
\ No newline at end of file |