20 #ifndef OPENXCOM_ARTICLESTATE_H
21 #define OPENXCOM_ARTICLESTATE_H
23 #include "../Engine/State.h"
24 #include "../Ruleset/RuleItem.h"
Container for all the information associated with a given user action, like mouse clicks,...
Definition: Action.h:35
UfopaediaArticle is the base class for all articles of various types.
Definition: ArticleState.h:41
void btnOkClick(Action *action)
callback for OK button
Definition: ArticleState.cpp:119
void initLayout()
screen layout helpers
Definition: ArticleState.cpp:98
virtual ~ArticleState()
destructor
Definition: ArticleState.cpp:53
std::string getId() const
return the article id
Definition: ArticleState.h:50
ArticleState(Game *game, std::string article_id)
constructor (protected, so it can only be instantiated by derived classes)
Definition: ArticleState.cpp:40
std::string _id
the article id
Definition: ArticleState.h:69
void btnNextClick(Action *action)
callback for NEXT button
Definition: ArticleState.cpp:137
std::string getDamageTypeText(ItemDamageType dt) const
converts damage type to string
Definition: ArticleState.cpp:56
void btnPrevClick(Action *action)
callback for PREV button
Definition: ArticleState.cpp:128
Surface * _bg
screen elements common to all articles!
Definition: ArticleState.h:72
The core of the game engine, manages the game's entire contents and structure.
Definition: Game.h:45
A game state that receives user input and reacts accordingly.
Definition: State.h:45
Element that is blit (rendered) onto the screen.
Definition: Surface.h:40
Coloured button with a text label.
Definition: TextButton.h:41
COPYING:
Definition: BaseInfoState.cpp:41