Debian Codegraph @

Oodle/src/CPixel.h

raw
1 #ifndef _CPIXEL_
2 #define _CPIXEL_
3
4 #include "CParticle.h"
5 #include "CVector.h"
6 #include "CColor.h"
7 #include "CRect.h"
8 #include "CSurface.h"
9
10 class CPixel : public CParticle
11 {
12 public:
13 CPixel(CVector v, CVector p, const CColor &c);
14 CPixel(CVector v, CVector p, const CColor &c, const CRect &r);
15 CPixel(const CPixel &p);
16 CPixel(const CPixel &p, const CColor &c);
17
18 const CPixel &operator=(const CPixel &p);
19
20 virtual void draw(CSurface &surface);
21 void lockBeforeDraw(bool l);
22
23 const CColor &getColor();
24 void setColor(const CColor &c);
25
26 private:
27 CColor color;
28 bool lock;
29 };
30
31 #endif