00001
00002
00003
00004
00005 #ifndef LIBWIISPRITE_LAYER
00006 #define LIBWIISPRITE_LAYER
00007
00008 #include <stdlib.h>
00009 #include <gccore.h>
00010
00012 namespace wsp{
00014 class Layer{
00015 public:
00016
00017 Layer();
00018
00019 virtual ~Layer();
00020
00023 u32 GetHeight() const;
00026 u32 GetWidth() const;
00027
00030 f32 GetX() const;
00033 f32 GetY() const;
00034
00037 bool IsVisible() const;
00040 void SetVisible(bool visible);
00041
00045 void SetPosition(f32 x, f32 y);
00049 void Move(f32 deltaX, f32 deltaY);
00052 void SetX(f32 x);
00055 void SetX(s32 x);
00058 void SetX(u32 x);
00061 void SetY(f32 y);
00064 void SetY(s32 y);
00067 void SetY(u32 y);
00068
00072 virtual void Draw(f32 offsetX = 0, f32 offsetY = 0) const;
00073 protected:
00074 u32 _height,
00075 _width;
00076 private:
00077 f32 _x, _y;
00078 bool _visible;
00079 };
00080 };
00081
00082 #endif