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/io_module.h

45 lines
508 B
C
Raw Normal View History

2007-01-14 18:07:03 +00:00
#ifndef _MODULE_H
#define _MODULE_H
#include "defines.h"
class Robot;
2007-01-14 18:07:03 +00:00
class IO_Module
{
public:
IO_Module()
{
this->parent = NULL;
2007-02-15 20:33:05 +00:00
this->moduleId = 0;
}
2007-01-14 18:07:03 +00:00
IO_Module(uint32 moduleId)
{
this->parent = NULL;
2007-01-14 18:07:03 +00:00
this->moduleId = moduleId;
}
protected:
Robot* parent;
2007-01-14 18:07:03 +00:00
uint32 moduleId;
public:
Robot* GetParent()
{
return parent;
}
void SetParent(Robot* newParent)
{
parent = newParent;
}
2007-01-14 18:07:03 +00:00
uint32 GetId()
{
return moduleId;
}
};
#endif