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/cCar.h | |
download | termgl-2c12d19204aa198bf8537bcdb137b40f0c7317e9.tar.gz |
Initial
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 |