From a87a70298aefdcade34739ae2aa3b07436aae328 Mon Sep 17 00:00:00 2001 From: jonas Date: Mon, 10 Dec 2018 17:04:23 +0100 Subject: Wrap up for new branch --- AmpelJonas/cCar.cpp | 2 +- AmpelJonas/cCrossroad.cpp | 11 ++++++----- AmpelJonas/cCrossroad.h | 3 +-- AmpelJonas/stdafx.h | 3 ++- 4 files changed, 10 insertions(+), 9 deletions(-) (limited to 'AmpelJonas') diff --git a/AmpelJonas/cCar.cpp b/AmpelJonas/cCar.cpp index 212cd7c..50122ac 100644 --- a/AmpelJonas/cCar.cpp +++ b/AmpelJonas/cCar.cpp @@ -81,4 +81,4 @@ void cCar::drive() } break; } -} \ No newline at end of file +} diff --git a/AmpelJonas/cCrossroad.cpp b/AmpelJonas/cCrossroad.cpp index 10718f6..82c8ed1 100644 --- a/AmpelJonas/cCrossroad.cpp +++ b/AmpelJonas/cCrossroad.cpp @@ -46,8 +46,8 @@ void cCrossroad::run() //init backround->setPosition(0, 0); - backround->drawRectangle('°', '°', sPos{ 0, _SIZE_Y_ / 2 - 4 }, sPos{ _SIZE_X_ - 1, _SIZE_Y_ / 2 + 4 }, _COL_DEFAULT, _COL_DEFAULT); - backround->drawRectangle('°', '°', sPos{ _SIZE_X_ / 2 - 6, 0 }, sPos{ _SIZE_X_ / 2 + 6, _SIZE_Y_ }, _COL_DEFAULT, _COL_DEFAULT); + backround->drawRectangle('�', '�', sPos{ 0, _SIZE_Y_ / 2 - 4 }, sPos{ _SIZE_X_ - 1, _SIZE_Y_ / 2 + 4 }, _COL_DEFAULT, _COL_DEFAULT); + backround->drawRectangle('�', '�', sPos{ _SIZE_X_ / 2 - 6, 0 }, sPos{ _SIZE_X_ / 2 + 6, _SIZE_Y_ }, _COL_DEFAULT, _COL_DEFAULT); //add objects to handler handler.createObject(backround); @@ -153,8 +153,8 @@ void cCrossroad::run() break; } } - - + + carWest.drive(); carEast.drive(); carNorth.drive(); @@ -173,5 +173,6 @@ void cCrossroad::run() iWait--; iFrames++; backround->drawText(to_string(iFrames) , sPos{ 0,0 }, _COL_DEFAULT); //Framecounter + usleep(100*1000); } -} \ No newline at end of file +} diff --git a/AmpelJonas/cCrossroad.h b/AmpelJonas/cCrossroad.h index 37bec28..18f7352 100644 --- a/AmpelJonas/cCrossroad.h +++ b/AmpelJonas/cCrossroad.h @@ -4,7 +4,6 @@ #define _SIZE_X_ 150 #define _SIZE_Y_ 50 - class cCrossroad { public: @@ -15,4 +14,4 @@ public: private: cRender *render; //cObjectHandler *handler; -}; \ No newline at end of file +}; diff --git a/AmpelJonas/stdafx.h b/AmpelJonas/stdafx.h index 986bfde..1e65f85 100644 --- a/AmpelJonas/stdafx.h +++ b/AmpelJonas/stdafx.h @@ -11,11 +11,12 @@ #ifdef _WIN32 #include +#elif __linux__ +#include #endif #include - #include "cRender.h" #include "cObject.h" #include "cObjectHandler.h" -- cgit v1.2.3