diff options
author | masterm <devnull@localhost> | 2007-02-13 15:40:04 +0100 |
---|---|---|
committer | masterm <devnull@localhost> | 2007-02-13 15:40:04 +0100 |
commit | 54a7ea32d4c79b5ca56b66a5dac28690e928740e (patch) | |
tree | e64f40a8eafd815cbb40c045b8d3c14d133a61a1 /source/Concept/Framework/engine.h | |
parent | 05c8b0af602b222d00c227560682158333b726a2 (diff) | |
download | rc2007-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.h | 29 |
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 |