summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/engine.h
diff options
context:
space:
mode:
authormasterm <devnull@localhost>2007-02-13 15:40:04 +0100
committermasterm <devnull@localhost>2007-02-13 15:40:04 +0100
commit54a7ea32d4c79b5ca56b66a5dac28690e928740e (patch)
treee64f40a8eafd815cbb40c045b8d3c14d133a61a1 /source/Concept/Framework/engine.h
parent05c8b0af602b222d00c227560682158333b726a2 (diff)
downloadrc2007-soccer-54a7ea32d4c79b5ca56b66a5dac28690e928740e.tar
rc2007-soccer-54a7ea32d4c79b5ca56b66a5dac28690e928740e.zip
+++ added parent object to io_modules
+++ added speed and enabling value stores for engines
Diffstat (limited to 'source/Concept/Framework/engine.h')
-rw-r--r--source/Concept/Framework/engine.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/Concept/Framework/engine.h b/source/Concept/Framework/engine.h
index 0b8bfac..2736a7a 100644
--- a/source/Concept/Framework/engine.h
+++ b/source/Concept/Framework/engine.h
@@ -8,12 +8,41 @@ class Engine : public IO_Module
public:
Engine()
{
+ this->enabled = false;
+ this->parent = NULL;
}
Engine(uint32 engineId)
{
+ this->enabled = false;
+ this->parent = NULL;
this->moduleId = engineId;
}
+
+protected:
+ bool enabled;
+ float curSpeed;
+
+public:
+ float GetSpeed()
+ {
+ return curSpeed;
+ }
+
+ void SetSpeed(float newSpeed)
+ {
+ curSpeed = newSpeed;
+ }
+
+ bool GetEnabled()
+ {
+ return enabled;
+ }
+
+ void SetEnabled(bool newStatus)
+ {
+ enabled = newStatus;
+ }
};
#endif