Very Simple Graphic Library
src/oggettografico.h
00001 #ifndef OGGETTOGRAFICO_H
00002 #define OGGETTOGRAFICO_H
00003 
00004 #include "quickcg.h"
00005 
00006 using namespace QuickCG;
00007 
00008 #include "vsgl_types.h"
00009 
00010 class OggettoGrafico
00011 {
00012     public:
00013         OggettoGrafico(int nx, int ny, const Colore& col):
00014         x(nx),y(ny),c(col),nascosto(false){}
00015         virtual ~OggettoGrafico(){}
00016         virtual void disegna() const = 0;
00017         virtual void muovi(int nx, int ny);
00018         void nascondi();
00019         void mostra();
00020     protected:
00021         int x;
00022         int y;
00023         Colore c;
00024         bool nascosto;
00025     private:
00026 };
00027 
00028 #endif // OGGETTOGRAFICO_H
 Tutto Classi File Funzioni Variabili