00001 #ifndef RETTANGOLO_H 00002 #define RETTANGOLO_H 00003 00004 #include "oggettografico.h" 00005 00006 class Rettangolo : public OggettoGrafico 00007 { 00008 public: 00009 Rettangolo(int x, int y, int l, int a, const Colore& c): 00010 OggettoGrafico(x,y,c),larghezza(l),altezza(a){} 00011 void disegna() const; 00012 void muovi(int x, int y); 00013 protected: 00014 private: 00015 int larghezza; 00016 int altezza; 00017 }; 00018 00019 #endif // RETTANGOLO_H