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

49 lines
595 B
C
Raw Normal View History

2007-01-14 18:07:03 +00:00
#ifndef _ENGINE_H
#define _ENGINE_H
#include "stdafx.h"
class Engine : public IO_Module
{
public:
Engine()
{
this->enabled = false;
this->parent = NULL;
2007-01-14 18:07:03 +00:00
}
Engine(uint32 engineId)
{
this->enabled = false;
this->parent = NULL;
2007-01-14 18:07:03 +00:00
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;
}
2007-01-14 18:07:03 +00:00
};
#endif