This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
rc2007-soccer/source/Concept/Framework/engine.h
masterm 54a7ea32d4 +++ added parent object to io_modules
+++ added speed and enabling value stores for engines
2007-02-13 14:40:04 +00:00

48 lines
595 B
C++

#ifndef _ENGINE_H
#define _ENGINE_H
#include "stdafx.h"
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