![]() |
Dragonfly 4.22
A text-based game engine
|
Public Member Functions | |
| std::string | getConfig () const |
| int | getWindowHorizontalPixels () const |
| int | getWindowVerticalPixels () const |
| int | getWindowHorizontalChars () const |
| int | getWindowVerticalChars () const |
| enum Color | getWindowBackgroundColor () const |
| int | getWindowStyle () const |
| sf::State | getWindowState () const |
| int | getFrameTime () const |
| float | getFontScale () const |
| std::string | getWindowTitle () const |
| bool | getShowMouse () const |
| bool | getHeadless () const |
| std::string | getFontFile () const |
| std::string | getLogFile () const |
| int | getRandomSeed () const |
| bool | getNetworking () const |
| int | getQuadtreeDepth () const |
| int | getQuadtreeThreshold () const |
| int | getGridWidth () const |
| int | getGridHeight () const |
| bool | getSignals () const |
| std::string | match (std::string find) const |
| void | setConfig (std::string config) |
| void | setWindowHorizontalPixels (int window_horizontal_pixels) |
| void | setWindowVerticalPixels (int window_vertical_pixels) |
| void | setWindowHorizontalChars (int window_horizontal_chars) |
| void | setWindowVerticalChars (int window_vertical_chars) |
| void | setWindowBackgroundColor (enum Color window_background_color) |
| void | setWindowStyle (int window_style) |
| void | setWindowState (sf::State window_state) |
| void | setFrameTime (int frame_time) |
| void | setFontScale (float font_scale) |
| void | setWindowTitle (std::string window_title) |
| void | setHeadless (bool headless=true) |
| void | setShowMouse (bool show_mouse=true) |
| void | setFontFile (std::string font_file) |
| void | setLogFile (std::string logfile) |
| void | setRandomSeed (int random_seed) |
| void | setNetworking (bool networking) |
| void | setQuadtreeDepth (int quadtree_thresh) |
| void | setQuadtreeThreshold (int quadtree_depth) |
| void | setGridWidth (int grid_width) |
| void | setGridHeight (int grid_height) |
| void | setSignals (bool signals) |
| void | writeToLog () const |
| std::string | readConfig () |
| void | loadConfig (std::string str="") |
Static Public Member Functions | |
| static Config & | getInstance () |
Private Member Functions | |
| Config () | |
| Config (Config const &) | |
| void | operator= (Config const &) |
Private Attributes | |
| std::string | m_config |
| int | m_window_horizontal_pixels |
| int | m_window_vertical_pixels |
| int | m_window_horizontal_chars |
| int | m_window_vertical_chars |
| int | m_window_style |
| sf::State | m_window_state |
| enum Color | m_window_background_color |
| int | m_frame_time |
| float | m_font_scale |
| std::string | m_window_title |
| bool | m_show_mouse |
| bool | m_headless |
| std::string | m_font_file |
| std::string | m_logfile |
| int | m_random_seed |
| bool | m_networking |
| int | m_quadtree_threshold |
| int | m_quadtree_depth |
| int | m_grid_width |
| int | m_grid_height |
| bool | m_signals |
|
private |
Private since a singleton.
|
private |
Don't allow copy.
| std::string df::Config::getConfig | ( | ) | const |
Get attributes.
| std::string df::Config::match | ( | std::string | find | ) | const |
Match key:value pair in global configuration, returning value.
Return empty string if no match.
|
private |
Don't allow assignment.
| void df::Config::setConfig | ( | std::string | config | ) |
Set attributes.
|
private |
Aggregate string from config file.
|
private |
Filename for graphics fonts.
|
private |
Font scale multiplier.
|
private |
Target time for 1 game loop (in mlsecs).
|
private |
Grid height.
|
private |
Grid width.
|
private |
True if run without graphics or input.
|
private |
Filename for dragonfly log.
|
private |
True if networking enabled.
|
private |
Max depth for quadtree.
|
private |
Object threshold for quadtree split.
|
private |
Seed for random number generation.
|
private |
True if should show mouse cursor.
|
private |
True if catch signals.
|
private |
Window background color.
|
private |
Horizontal ASCII spaces in window.
|
private |
Horizontal pixels in window.
|
private |
Window state (full/windowed).
|
private |
Window style (default title + close).
|
private |
Title of window.
|
private |
Vertical ASCII spaces in window.
|
private |
Vertical pixels in window.