void btnOkClick(Action *action)
callback for OK button
Definition: ArticleState.cpp:119
void btnNextClick(Action *action)
callback for NEXT button
Definition: ArticleState.cpp:137
std::string getId() const
return the article id
Definition: ArticleState.h:50
Surface * _bg
screen elements common to all articles!
Definition: ArticleState.h:72
void initLayout()
screen layout helpers
Definition: ArticleState.cpp:98
void btnPrevClick(Action *action)
callback for PREV button
Definition: ArticleState.cpp:128
virtual ~ArticleState()
destructor
Definition: ArticleState.cpp:53
std::string getDamageTypeText(ItemDamageType dt) const
converts damage type to string
Definition: ArticleState.cpp:56
ArticleState(Game *game, std::string article_id)
constructor (protected, so it can only be instantiated by derived classes)
Definition: ArticleState.cpp:40
UfopaediaArticle is the base class for all articles of various types.
Definition: ArticleState.h:40
std::string _id
the article id
Definition: ArticleState.h:69