#include "video/font_ptr.hpp"
/** A text object intended for scripts that want to tell a story */
-class TextObject : public GameObject,
+class TextObject : public GameObject,
public scripting::Text,
public ScriptInterface
{
void set_centered(bool centered);
bool is_visible();
- void set_anchor_point(AnchorPoint anchor) {
- this->anchor = anchor;
+ void set_anchor_point(AnchorPoint anchor_) {
+ this->anchor = anchor_;
}
AnchorPoint get_anchor_point() const {
return anchor;
}
- void set_pos(const Vector& pos) {
- this->pos = pos;
- }
+ void set_pos(const Vector& pos_) {
+ this->pos = pos_;
+ }
void set_pos(float x, float y) {
set_pos(Vector(x, y));
}
const Vector& get_pos() const {
- return pos;
+ return pos;
}
float get_pos_x() {
return pos.x;
return pos.y;
}
- void set_anchor_point(int anchor) {
- set_anchor_point((AnchorPoint) anchor);
+ void set_anchor_point(int anchor_) {
+ set_anchor_point((AnchorPoint) anchor_);
}
int get_anchor_point() {
return (int) get_anchor_point();