pmc/include/rectangle.hpp
author Markus Bröker <mbroeker@largo.dyndns.tv>
Thu, 16 Apr 2009 12:49:13 +0200
changeset 65 76514757b0d6
permissions -rw-r--r--
GNU Indent cannot handle C++ Source Files... I like GNU indent. I like it so much that i use it for all my projects. But it doesn't work with C++ sources. To avoid further problems, all C++ Headers will be renamed from *.h to their *.hpp counterparts. mbroeker committer: Markus Bröker <mbroeker@largo.homelinux.org>

/**
 * test/demos/pmc/include/rectangle.h
 * Copyright (C) 2008 Markus Broeker
 */

#ifndef RECTANGLE_H
#define RECTANGLE_H

#include <surface.hpp>
#include <vector.hpp>
#include <drawable.hpp>

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