X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FGauge.h;h=59a7490961da5c3c92b161d134aed3c1d8220d93;hb=2255d436a0c2acc10b015827366a72b2ece86094;hp=3251ec2e0eccf0b7a9d11cce4966ae307964db32;hpb=f6d399c08f0878459bcd1c6b3f4958f300243a71;p=l2e.git diff --git a/src/graphics/Gauge.h b/src/graphics/Gauge.h index 3251ec2..59a7490 100644 --- a/src/graphics/Gauge.h +++ b/src/graphics/Gauge.h @@ -1,10 +1,3 @@ -/* - * Gauge.h - * - * Created on: Aug 7, 2012 - * Author: holy - */ - #ifndef GRAPHICS_GAUGE_H_ #define GRAPHICS_GAUGE_H_ @@ -16,6 +9,9 @@ namespace graphics { class Gauge { + public: + static const int TYPE_ID = 406; + public: explicit Gauge(SDL_Surface *s = 0, int fullX = 0, int fullY = 0, int emptyX = 0, int emptyY = 0, int height = 1, int startWidth = 0, int repeatWidth = 1, int endWidth = 0) : surface(s), fullOffset(fullX, fullY), emptyOffset(emptyX, emptyY), height(height), startWidth(startWidth), repeatWidth(repeatWidth), endWidth(endWidth) { } @@ -34,6 +30,9 @@ public: void SetRepeatWidth(int w) { repeatWidth = w; } void SetEndWidth(int w) { endWidth = w; } + static void CreateTypeDescription(); + static void Construct(void *); + private: SDL_Surface *surface; geometry::Vector fullOffset;