CSC3221_Programming_For_Games_Shapes / Project2 / Square.h
Square.h
Raw
#pragma once
#ifndef _SQUARE_H_
#define _SQUARE_H_

#include "Shape.h"

class Square : public Shape {
	
public:
	Square(void);
	Square(const float x, const float y, const float length);
	Square(const Square& shape);
	~Square(void);
	
	float getLength() const { return length; };

	bool isDetectCollision(const Shape &shape) const;
	
	std::ostream& result(std::ostream& output) const;

	Square& operator=(const Square &square);
	friend std::ostream& operator<<(std::ostream& output, const Square& square);

private:
	float length;
};
#endif