projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SDL: Implement lightmaps smaller than the screen size. LIGHTMAP_DIV is calculated...
[supertux.git]
/
src
/
object
/
floating_image.hpp
diff --git
a/src/object/floating_image.hpp
b/src/object/floating_image.hpp
index
0c827fa
..
19797db
100644
(file)
--- a/
src/object/floating_image.hpp
+++ b/
src/object/floating_image.hpp
@@
-36,7
+36,7
@@
public:
void set_layer(int layer) {
this->layer = layer;
}
void set_layer(int layer) {
this->layer = layer;
}
-
+
int get_layer() const {
return layer;
}
int get_layer() const {
return layer;
}
@@
-47,7
+47,7
@@
public:
const Vector& get_pos() const {
return pos;
}
const Vector& get_pos() const {
return pos;
}
-
+
void set_anchor_point(AnchorPoint anchor) {
this->anchor = anchor;
}
void set_anchor_point(AnchorPoint anchor) {
this->anchor = anchor;
}
@@
-62,6
+62,12
@@
public:
return visible;
}
return visible;
}
+ void set_action(const std::string& action);
+ std::string get_action();
+
+ void fade_in(float fadetime);
+ void fade_out(float fadetime);
+
void update(float elapsed_time);
void draw(DrawingContext& context);
void update(float elapsed_time);
void draw(DrawingContext& context);
@@
-71,7
+77,8
@@
private:
bool visible;
AnchorPoint anchor;
Vector pos;
bool visible;
AnchorPoint anchor;
Vector pos;
+ float fading;
+ float fadetime;
};
#endif
};
#endif
-