From 79115386afc1dee957f77e9a82b5b9b2c5f347e6 Mon Sep 17 00:00:00 2001 From: sicarius Date: Tue, 16 Jan 2007 16:10:05 +0000 Subject: Changed some things in Concept directory --- source/Concept/main.cpp | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 source/Concept/main.cpp (limited to 'source/Concept/main.cpp') diff --git a/source/Concept/main.cpp b/source/Concept/main.cpp deleted file mode 100644 index 6305a1e..0000000 --- a/source/Concept/main.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include "stdafx.h" - -int main() -{ - //Init our robot - Robot* localRobot = new Robot(); - - //Init Engines - for(uint8 i = IO_ENGINE_START; i < IO_ENGINE_END; i++) - { - Engine* newEngine = new Engine(i); - localRobot->AddModule(newEngine); - newEngine = NULL; - } - - //Init Sensors - for(uint8 i = IO_SENSOR_START; i < IO_SENSOR_END; i++) - { - SensorTypes newSensorType; - - switch(i) - { - //Cases when sensor is digital: - // newSensorType = SENSOR_TYPE_DIGITAL; - // break; - - //Other cases - default: - newSensorType = SENSOR_TYPE_ANALOG; - break; - } - - Sensor* newSensor = new Sensor(i, newSensorType); - localRobot->AddModule(newSensor); - newSensor = NULL; - } - - //Run - while(true) - { - localRobot->Update(); - } - - //Cleanup - delete localRobot; - localRobot = NULL; -} \ No newline at end of file -- cgit v1.2.3