MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / ArticleState

Method ArticleState

src/Ufopaedia/ArticleState.cpp:40–48  ·  view source on GitHub ↗

* Constructor * @param game Pointer to current game. * @param article_id The article id of this article state instance. */

Source from the content-addressed store, hash-verified

38 * @param article_id The article id of this article state instance.
39 */
40 ArticleState::ArticleState(Game *game, std::string article_id) :
41 State(game), _id(article_id)
42 {
43 // init background and navigation elements
44 _bg = new Surface(320, 200, 0, 0);
45 _btnOk = new TextButton(30, 14, 5, 5);
46 _btnPrev = new TextButton(30, 14, 40, 5);
47 _btnNext = new TextButton(30, 14, 75, 5);
48 }
49
50 /**
51 * Destructor

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected