diff options
author | sicarius <devnull@localhost> | 2007-01-16 17:10:05 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-01-16 17:10:05 +0100 |
commit | 79115386afc1dee957f77e9a82b5b9b2c5f347e6 (patch) | |
tree | 6b9f8dd15eb4032d569c026750095ba00a7479e5 /source/Concept/robot.h | |
parent | 3b12c56f1b11be4aa538638baffa0b298440c57f (diff) | |
download | rc2007-soccer-79115386afc1dee957f77e9a82b5b9b2c5f347e6.tar rc2007-soccer-79115386afc1dee957f77e9a82b5b9b2c5f347e6.zip |
Changed some things in Concept directory
Diffstat (limited to 'source/Concept/robot.h')
-rw-r--r-- | source/Concept/robot.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/source/Concept/robot.h b/source/Concept/robot.h deleted file mode 100644 index 543f1ed..0000000 --- a/source/Concept/robot.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef _ROBOT_H
-#define _ROBOT_H
-
-#include "stdafx.h"
-
-class IO_Module;
-class Sensor;
-class Engine;
-
-class Robot
-{
-public:
- ~Robot();
-
-private:
- typedef hash_map<uint32, IO_Module*> moduleMap;
- moduleMap modules;
-
-public:
- bool AddModule(IO_Module* newModule);
-
- template <class T> T* GetModule(uint32 moduleId)
- {
- moduleMap::const_iterator itr = modules.find(moduleId);
- if(itr == modules.end())
- return NULL;
- else
- return ((T*)itr->second);
- }
-
- bool RemoveModule(uint32 moduleId)
- {
- moduleMap::iterator itr = modules.find(moduleId);
- if(itr == modules.end())
- return false;
-
- modules.erase(itr);
- return true;
- }
-
- bool RemoveModule(IO_Module* oldModule);
-
- void Update();
-};
-
-#endif
\ No newline at end of file |