void set_layer(int layer) {
this->layer = layer;
}
-
+
int get_layer() const {
return layer;
}
const Vector& get_pos() const {
return pos;
}
-
+
void set_anchor_point(AnchorPoint anchor) {
this->anchor = anchor;
}
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);
bool visible;
AnchorPoint anchor;
Vector pos;
+ float fading;
+ float fadetime;
};
#endif
-