void btnOkClick(Action *action)
callback for OK button
Definition: ArticleState.cpp:117
void btnNextClick(Action *action)
callback for NEXT button
Definition: ArticleState.cpp:135
ArticleState(const std::string &article_id)
constructor (protected, so it can only be instantiated by derived classes)
Definition: ArticleState.cpp:37
Surface * _bg
screen elements common to all articles!
Definition: ArticleState.h:69
void initLayout()
screen layout helpers
Definition: ArticleState.cpp:94
void btnPrevClick(Action *action)
callback for PREV button
Definition: ArticleState.cpp:126
virtual ~ArticleState()
destructor
Definition: ArticleState.cpp:49
UfopaediaArticle is the base class for all articles of various types.
Definition: ArticleState.h:37
std::string _id
the article id
Definition: ArticleState.h:66
std::string getId() const
return the article id
Definition: ArticleState.h:47
std::string getDamageTypeText(ItemDamageType dt) const
converts damage type to string
Definition: ArticleState.cpp:52