diff options
Diffstat (limited to 'AmpelJonas/cCar.h')
-rw-r--r-- | AmpelJonas/cCar.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/AmpelJonas/cCar.h b/AmpelJonas/cCar.h new file mode 100644 index 0000000..c505079 --- /dev/null +++ b/AmpelJonas/cCar.h @@ -0,0 +1,22 @@ +#pragma once +#include "stdafx.h" + +#define _CAR_DIR_SOUTH 2 +#define _CAR_DIR_NORTH 4 +#define _CAR_DIR_EAST 1 +#define _CAR_DIR_WEST 3 + +class cCar +{ +public: + cCar(int _direction, int *_phase); + ~cCar(); + + cObject *getObject(); + + void drive(); +private: + cObject *car; + int iDirection; + int *pPhase; +};
\ No newline at end of file |