3rd year group project. Electronic and Electrical Engineering. Heriot-Watt University. This is the code for the mbed for the Automatic Little Object Organiser (ALOO).

Dependencies:   MCP23017 TCS3472_I2C WattBob_TextLCD mbed

Block.cpp

Committer:
dreamselec
Date:
2015-11-16
Revision:
7:b6e31bfdb2af
Parent:
6:98fe30430194
Child:
20:4e0f0944f28f

File content as of revision 7:b6e31bfdb2af:

/*
 * Block.cpp
 *
 *  Created on: 16 Nov 2015
 *      Author: chandansiyag
 */

#include "Block.h"

Colour::Colour(){
	setRed(0);
	setBlue(0);
	setGreen(0);
	setAlpha(0);
}

Colour::~Colour(){

}

Colour::Colour(const Colour& rhs){
	setRed(rhs.getRed());
	setBlue(rhs.getBlue());
	setGreen(rhs.getGreen());
	setAlpha(rhs.getAlpha());
}

Block::Block(){
	this->size = Small;
	this->minColour = Colour();
	this->maxColour = Colour();
}
Block::Block(Size size) {
	// TODO Auto-generated constructor stub
	this->size = size;
	this->minColour = Colour();
	this->maxColour = Colour();
}

Block::Block(const Block& rhs){
	minColour = Colour(rhs.minColour);
	maxColour = Colour(rhs.maxColour);
	size = rhs.size;
}

Block::~Block() {
	// TODO Auto-generated destructor stub
}