Sokoban
Variables
Constants.

Variables

static const float SokobanApp::FONT_SIZE
 
static const float SokobanApp::FIELD_SIZE_X
 
static const float SokobanApp::FIELD_SIZE_Y
 
static const float SokobanApp::MENU_X
 
static const float SokobanApp::MENU_Y
 
static const float SokobanApp::MENU_OFFSET
 
static const float SokobanApp::TEXT_BOX_HEIGHT
 
static const float SokobanApp::STATUS_WORD_DEFAULT_LENGTH
 
static const char SokobanApp::MAP_SEPARATOR
 
static const char SokobanApp::USERS_SETINGS_SEPARATOR
 
static const char SokobanApp::MAP_ID_SEPARATOR
 
static const int SokobanApp::MAX_MAP_PACK_ID_LENGTH
 
static const char SokobanApp::USER_SOURCE_FILE []
 
static const char SokobanApp::HIGHSCORE_SOURCE_FILE []
 
static const char SokobanApp::MAP_HIHGSCORE_LABEL []
 
static const char SokobanApp::USER_HIGHSCORE_LABEL []
 
static const char SokobanApp::MAP_PACK_LOADED_LABEL []
 
static const char SokobanApp::NUMBER_OF_MAP_LOADED_LABEL []
 
static const std::vector< char > SokobanApp::FORBIDDEN_MAP_ID_CHARS
 
static const std::vector< char > SokobanApp::FORBIDDEN_USER_NAME_CHARS
 
static const std::vector< std::string > SokobanApp::extensions
 

Detailed Description

Constans used in application.

Variable Documentation

◆ extensions

const std::vector<std::string> SokobanApp::extensions
staticprivate

Vector of prefered extensions for map pack files.

◆ FIELD_SIZE_X

const float SokobanApp::FIELD_SIZE_X
staticprivate

Width (in pixels) of the cell in game grid which represents a game element (ground, wall, barrel etc.)

◆ FIELD_SIZE_Y

const float SokobanApp::FIELD_SIZE_Y
staticprivate

Height (in pixels) of the cell in game grid which represents a game element (ground, wall, barrel etc.)

◆ FONT_SIZE

const float SokobanApp::FONT_SIZE
staticprivate

Size of font for drawing game information.

◆ FORBIDDEN_MAP_ID_CHARS

const std::vector<char> SokobanApp::FORBIDDEN_MAP_ID_CHARS
staticprivate

Vectors of the forbidden symbols in map id.

◆ FORBIDDEN_USER_NAME_CHARS

const std::vector<char> SokobanApp::FORBIDDEN_USER_NAME_CHARS
staticprivate

Vectors of the forbidden symbols in user name.

◆ HIGHSCORE_SOURCE_FILE

const char SokobanApp::HIGHSCORE_SOURCE_FILE[]
staticprivate

Name of the source file for highscore data.

◆ MAP_HIHGSCORE_LABEL

const char SokobanApp::MAP_HIHGSCORE_LABEL[]
staticprivate

◆ MAP_ID_SEPARATOR

const char SokobanApp::MAP_ID_SEPARATOR
staticprivate

Character which separates name of map pack and the number of map which is played. This two strings are made map id for highscore.

◆ MAP_PACK_LOADED_LABEL

const char SokobanApp::MAP_PACK_LOADED_LABEL[]
staticprivate

◆ MAP_SEPARATOR

const char SokobanApp::MAP_SEPARATOR
staticprivate

Character which must be at the end of map file.

◆ MAX_MAP_PACK_ID_LENGTH

const int SokobanApp::MAX_MAP_PACK_ID_LENGTH
staticprivate

Maximal length of the map pack id.

◆ MENU_OFFSET

const float SokobanApp::MENU_OFFSET
staticprivate

Distance between the menu and the game grid and between the menu and the border of window.

◆ MENU_X

const float SokobanApp::MENU_X
staticprivate

Width (in pixels) of the menu.

◆ MENU_Y

const float SokobanApp::MENU_Y
staticprivate

Height (in pixels) of the menu.

◆ NUMBER_OF_MAP_LOADED_LABEL

const char SokobanApp::NUMBER_OF_MAP_LOADED_LABEL[]
staticprivate

◆ STATUS_WORD_DEFAULT_LENGTH

const float SokobanApp::STATUS_WORD_DEFAULT_LENGTH
staticprivate

Default length of the word which describes a game status.

◆ TEXT_BOX_HEIGHT

const float SokobanApp::TEXT_BOX_HEIGHT
staticprivate

Height of all words which are drawed.

◆ USER_HIGHSCORE_LABEL

const char SokobanApp::USER_HIGHSCORE_LABEL[]
staticprivate

◆ USER_SOURCE_FILE

const char SokobanApp::USER_SOURCE_FILE[]
staticprivate

Name of the source file for user data (proress).

◆ USERS_SETINGS_SEPARATOR

const char SokobanApp::USERS_SETINGS_SEPARATOR
staticprivate

Character which separates information for users in data file.