Merge branch 'TeamCGPU_TestWithBaseLayer' into Team_CMU_MergeBase

This commit is contained in:
Raphael Maenle
2017-12-18 21:24:21 +01:00
parent 0048f5b42d
commit 90e31ddba6
6 changed files with 247 additions and 16 deletions

View File

@ -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