* Constructor * @param game Pointer to current game. * @param article_id The article id of this article state instance. */
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected