diff options
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 |