X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FGauge.h;h=e4750ca6c14c187c471fef882b251097f5d90ab5;hb=c806ec0b9fde2cd3e8313b4a2c38e62a0ff14365;hp=3251ec2e0eccf0b7a9d11cce4966ae307964db32;hpb=d5959073b2c413ba1bd6f3d14bc8bcf59304e488;p=l2e.git diff --git a/src/graphics/Gauge.h b/src/graphics/Gauge.h index 3251ec2..e4750ca 100644 --- a/src/graphics/Gauge.h +++ b/src/graphics/Gauge.h @@ -16,6 +16,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 +37,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;