PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Types | Static Public Member Functions | Static Public Attributes | Friends | List of all members
ConfigManager Class Reference

Public Types

enum  screenType { SCR_Static =0, SCR_Dynamic }
 

Static Public Member Functions

static bool loadMusic (QString rootPath, QString iniFile, bool isCustom=false)
 
static bool loadDefaultMusics ()
 
static QString getWldMusic (unsigned long musicID, QString customMusic="")
 
static QString getLvlMusic (unsigned long musicID, QString customMusic="")
 
static QString getSpecialMusic (unsigned long musicID)
 
static bool loadDefaultSounds ()
 
static bool loadSound (QString rootPath, QString iniFile, bool isCustom=false)
 
static QString getSound (unsigned long sndID)
 
static long getSoundByRole (obj_sound_role::roles role)
 
static bool loadSoundRolesTable ()
 
static void buildSoundIndex ()
 
static void clearSoundIndex ()
 
static bool musicIniChanged ()
 
static bool soundIniChanged ()
 
static void setConfigPath (QString p)
 
static bool loadBasics ()
 
static bool unloadLevelConfigs ()
 
static bool unloadWorldConfigs ()
 
static void unluadAll ()
 
static bool loadLevelBlocks ()
 
static long getBlockTexture (long blockID)
 
static bool loadLevelBGO ()
 
static long getBgoTexture (long bgoID)
 
static bool loadLevelNPC ()
 
static void loadNpcTxtConfig (long npcID)
 
static long getNpcTexture (long npcID)
 
static bool loadLevelBackG ()
 
static bool loadLevelBackground (obj_BG &sbg, QString section, obj_BG *merge_with=0, QString iniFile="", QSettings *setup=0)
 
static long getBGTexture (long bgID, bool isSecond=false)
 
static bool loadWorldTiles ()
 
static long getTileTexture (long tileID)
 
static bool loadWorldScenery ()
 
static long getSceneryTexture (long sceneryID)
 
static bool loadWorldPaths ()
 
static long getWldPathTexture (long pathID)
 
static bool loadWorldLevels ()
 
static long getWldLevelTexture (long levelID)
 
static bool loadLevelEffects ()
 
static long getEffectTexture (long effectID)
 
static long getLvlPlayerTexture (long playerID, int stateID)
 
static long getWldPlayerTexture (long playerID, int stateID)
 
static void resetPlayableTexuresState ()
 Sets all 'isInit' state to false for all textures for level textutes.
 
static void resetPlayableTexuresStateWld ()
 Same but for world map player images.
 
static bool loadPlayableCharacters ()
 Load lvl_characters.ini file.
 
static void addError (QString bug, QtMsgType level=QtWarningMsg)
 
static QString PathLevelBGO ()
 
static QString PathLevelBG ()
 
static QString PathLevelBlock ()
 
static QString PathLevelNPC ()
 
static QString PathLevelNPCScript ()
 
static QString PathLevelEffect ()
 
static QString PathLevelPlayable ()
 
static QString PathCommonGFX ()
 
static QString PathScript ()
 
static QString PathWorldTiles ()
 
static QString PathWorldScenery ()
 
static QString PathWorldPaths ()
 
static QString PathWorldLevels ()
 
static QString PathWorldPlayable ()
 
static QString PathWorldMusic ()
 
static QString PathWorldSound ()
 
static QString clearMusTrack (QString path)
 

Static Public Attributes

static DataFolders dirs
 
static QString config_id ="dummy"
 
static QString config_dir
 
static QString data_dir
 
static int default_grid =32
 
static QList< PGE_Texturecommon_textures
 
static unsigned int screen_width =800
 
static unsigned int screen_height =600
 
static screenType screen_type = ConfigManager::SCR_Static
 
static FontsSetup setup_fonts
 
static MainCursors setup_cursors
 
static MessageBoxSetup setup_message_box
 
static MenuBoxSetup setup_menu_box
 
static MenuSetup setup_menus
 
static LoadingScreenSetup setup_LoadingScreen
 
static TitleScreenSetup setup_TitleScreen
 
static WorldMapSetup setup_WorldMap
 
static LevelSetup setup_Level
 
static CreditsScreenSetup setup_CreditsScreen
 
static unsigned long music_custom_id
 
static unsigned long music_w_custom_id
 
static QHash< int, obj_musicmain_music_lvl
 
static QHash< int, obj_musicmain_music_wld
 
static QHash< int, obj_musicmain_music_spc
 
static QHash< int, obj_soundmain_sound
 
static QHash
< obj_sound_role::roles, long > 
main_sound_table
 
static QVector< obj_sound_indexmain_sfx_index
 
static QString music_lastIniFile
 
static QString sound_lastIniFile
 
static bool music_lastIniFile_changed =false
 
static bool sound_lastIniFile_changed =false
 
static QMap< long, obj_blocklvl_block_indexes
 
static CustomDirManager Dir_Blocks
 
static QList< SimpleAnimatorAnimator_Blocks
 
static QMap< long, obj_bgolvl_bgo_indexes
 
static CustomDirManager Dir_BGO
 
static QList< SimpleAnimatorAnimator_BGO
 
static QMap< long, obj_npclvl_npc_indexes
 
static NPC_GlobalSetup marker_npc
 
static CustomDirManager Dir_NPC
 
static CustomDirManager Dir_NPCScript
 
static QList< AdvNpcAnimatorAnimator_NPC
 Global NPC Animators (just for a coins, vines, not for activing NPC's!)
 
static QMap< long, obj_BGlvl_bg_indexes
 
static CustomDirManager Dir_BG
 
static QList< SimpleAnimatorAnimator_BG
 
static QMap< long, obj_w_tilewld_tiles
 
static CustomDirManager Dir_Tiles
 
static QList< SimpleAnimatorAnimator_Tiles
 
static QMap< long, obj_w_scenerywld_scenery
 
static CustomDirManager Dir_Scenery
 
static QList< SimpleAnimatorAnimator_Scenery
 
static QMap< long, obj_w_pathwld_paths
 
static CustomDirManager Dir_WldPaths
 
static QList< SimpleAnimatorAnimator_WldPaths
 
static QMap< long, obj_w_levelwld_levels
 
static CustomDirManager Dir_WldLevel
 
static QList< SimpleAnimatorAnimator_WldLevel
 
static wld_levels_Markers marker_wlvl
 
static QMap< long, obj_effectlvl_effects_indexes
 
static CustomDirManager Dir_EFFECT
 
static QHash< int, obj_playerplayable_characters
 
static CustomDirManager Dir_PlayerWld
 
static CustomDirManager Dir_PlayerLvl
 
static QList< PGE_Texturelevel_textures
 
static QList< PGE_Textureworld_textures
 
static QStringList errorsList
 

Friends

struct LoadingScreenSetup
 
struct TitleScreenSetup
 
struct WorldMapSetup
 
struct LevelSetup
 
struct CreditsScreenSetup
 

Member Function Documentation

bool ConfigManager::loadBasics ( )
static

< Load engine.ini file

< Load lvl_characters.ini file

bool ConfigManager::unloadLevelConfigs ( )
static

Clear texture bank

bool ConfigManager::unloadWorldConfigs ( )
static

Clear texture bank


The documentation for this class was generated from the following files: