diff --git a/pmc/include/rectangle.hpp b/pmc/include/rectangle.hpp new file mode 100644 --- /dev/null +++ b/pmc/include/rectangle.hpp @@ -0,0 +1,27 @@ +/** + * test/demos/pmc/include/rectangle.h + * Copyright (C) 2008 Markus Broeker + */ + +#ifndef RECTANGLE_H +#define RECTANGLE_H + +#include +#include +#include + +class Rectangle:public Drawable { + private: + algebra::Vector * P[4]; + + public: + Rectangle (Surface *, algebra::Vector & p1, algebra::Vector & p2, algebra::Vector & p3, algebra::Vector & p4); + Rectangle (Surface *, algebra::Vector[4]); + Rectangle (Surface *); + Rectangle (const Rectangle &); + virtual ~ Rectangle (); + + void move (algebra::Vector); + void show (); +}; +#endif