22 #ifndef NANCY_RENDEROBJECT_H 23 #define NANCY_RENDEROBJECT_H 25 #include "common/path.h" 26 #include "graphics/managed_surface.h" 45 virtual void registerGraphics();
46 virtual void updateGraphics() {}
50 void setVisible(
bool visible);
51 void setTransparent(
bool isTransparent);
52 bool isVisible()
const {
return _isVisible; }
55 void grabPalette(byte *colors, uint paletteStart = 0, uint paletteSize = 256);
57 void setPalette(
const byte *colors, uint paletteStart = 0, uint paletteSize = 256);
59 bool hasMoved()
const {
return _previousScreenPosition != _screenPosition; }
69 uint16 getZOrder()
const {
return _z; }
75 virtual bool isViewportRelative()
const {
return false; }
87 #endif // NANCY_RENDEROBJECT_H Definition: managed_surface.h:51
virtual void setPalette(const byte *colors, uint start, uint num)=0
Definition: graphics.h:37
Definition: renderobject.h:36
int16 width() const
Definition: rect.h:191
virtual void grabPalette(byte *colors, uint start, uint num) const =0
Definition: graphics.h:37
int16 height() const
Definition: rect.h:192
Definition: actionmanager.h:32