Merge branch 'TeamCGPU_TestWithBaseLayer' into Team_CMU_MergeBase
This commit is contained in:
@ -1,22 +1,40 @@
|
||||
#ifndef SOURCE_PART_H
|
||||
#define SOURCE_PART_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "../functions/AbstractionLayers/Layer1/AbstractionLayer_1_Properties.h"
|
||||
|
||||
class Part
|
||||
{
|
||||
public:
|
||||
double r;
|
||||
double g;
|
||||
double b;
|
||||
|
||||
Part(): connections(0){}
|
||||
Part() : m_partID(0) {}
|
||||
~Part() {}
|
||||
uint8_t getConnections() const
|
||||
{return connections;}
|
||||
|
||||
void setConnections(uint8_t newconnections)
|
||||
{connections = newconnections;}
|
||||
int32_t GetPartID () const
|
||||
{
|
||||
return m_partID;
|
||||
}
|
||||
|
||||
void SetPartID(const int32_t partID)
|
||||
{
|
||||
m_partID = partID;
|
||||
}
|
||||
|
||||
uint8_t GetNumOfRotations () const
|
||||
{
|
||||
return m_numOfRotations;
|
||||
}
|
||||
|
||||
void SetNumOfRotations(const uint8_t numOfRotations)
|
||||
{
|
||||
m_numOfRotations = numOfRotations;
|
||||
}
|
||||
|
||||
AbstractionLayer_1_Properties m_test1;
|
||||
|
||||
private:
|
||||
uint8_t connections;
|
||||
int32_t m_partID;
|
||||
uint8_t m_numOfRotations;
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
#endif //SOURCE_PART_H
|
Reference in New Issue
Block a user