summaryrefslogtreecommitdiff
path: root/AmpelJonas/cPeasantTrafficLight.h
blob: 88ec99b31b033682ddacc289702f2b7055a4e20b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
};