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

Method State

src/Engine/State.cpp:48–52  ·  view source on GitHub ↗

* Initializes a brand new state with no child elements. * By default states are full-screen. * @param game Pointer to the core game. */

Source from the content-addressed store, hash-verified

46 * @param game Pointer to the core game.
47 */
48State::State(Game *game) : _game(game), _surfaces(), _screen(true), _modal(0)
49{
50 // initialize palette to all black
51 memset(_palette, 0, sizeof(_palette));
52}
53
54/**
55 * Deletes all the child elements contained in the state.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected