ManaPlus
Public Member Functions | Data Fields
Settings Class Reference

#include <settings.h>

Public Member Functions

 Settings ()
 
void init ()
 

Data Fields

std::string updateHost
 
std::string login
 
std::string oldUpdates
 
std::string updatesDir
 
std::string configDir
 
std::string localDataDir
 
std::string tempDir
 
std::string serverName
 
std::string screenshotDir
 
std::string onlineListUrl
 
std::string serverConfigDir
 
std::string usersDir
 
std::string usersIdDir
 
std::string npcsDir
 
std::string supportUrl
 
std::string logFileName
 
std::string rootDir
 
std::string windowCaption
 
std::string gmCommandSymbol
 
std::string gmCharCommandSymbol
 
std::string linkCommandSymbol
 
std::string userAgent
 
std::vector< std::string > updateMirrors
 
Options options
 
float guiAlpha
 
unsigned int textureSize
 
unsigned int moveType
 
unsigned int crazyMoveType
 
unsigned int moveToTargetType
 
unsigned int followMode
 
unsigned int attackWeaponType
 
unsigned int attackType
 
unsigned int quickDropCounter
 
unsigned int pickUpType
 
unsigned int magicAttackType
 
unsigned int pvpAttackType
 
unsigned int imitationMode
 
unsigned int cameraMode
 
unsigned int crazyMoveState
 
unsigned int targetingType
 
unsigned int overweightPercent
 
unsigned int fixedInventorySize
 
int playerNameOffset
 
int playerBadgeAtRightOffset
 
MapTypeT mapDrawType
 
EmoteTypeT emoteType
 
bool persistentIp
 
bool limitFps
 
KeyboardFocusT inputFocused
 
bool mouseFocused
 
bool disableGameModifiers
 
bool awayMode
 
bool pseudoAwayMode
 
bool fixDeadAnimation
 
bool disableLoggingInGame
 
bool enableRemoteCommands
 
bool uselonglivesprites
 
bool unknownSkillsAutoTab
 
bool enableNewMailSystem
 
bool showButtonIcons
 

Detailed Description

Definition at line 36 of file settings.h.

Constructor & Destructor Documentation

◆ Settings()

Settings::Settings ( )
inline

Definition at line 39 of file settings.h.

39  :
40  updateHost(),
41  login(),
42  oldUpdates(),
43  updatesDir(),
44  configDir(),
45  localDataDir(),
46  tempDir(),
47  serverName(),
48  screenshotDir(),
49  onlineListUrl(),
51  usersDir(),
52  usersIdDir(),
53  npcsDir(),
54  supportUrl(),
55  logFileName(),
56  rootDir(),
57  windowCaption(),
58  gmCommandSymbol("@"),
60  linkCommandSymbol("="),
61  userAgent(),
62  updateMirrors(),
63  options(),
64  guiAlpha(1.0F),
65  textureSize(1024),
66  moveType(0U),
67  crazyMoveType(0U),
68  moveToTargetType(0U),
69  followMode(0U),
70  attackWeaponType(0U),
71  attackType(0U),
72  quickDropCounter(0U),
73  pickUpType(0U),
74  magicAttackType(0U),
75  pvpAttackType(0U),
76  imitationMode(0U),
77  cameraMode(0U),
78  crazyMoveState(0U),
79  targetingType(0U),
80  overweightPercent(50U),
81  fixedInventorySize(100U),
82  playerNameOffset(64),
86  persistentIp(true),
87  limitFps(false),
89  mouseFocused(true),
90  disableGameModifiers(false),
91  awayMode(false),
92  pseudoAwayMode(false),
93  fixDeadAnimation(true),
94  disableLoggingInGame(false),
96  uselonglivesprites(false),
98  enableNewMailSystem(true),
99  showButtonIcons(false)
100  { }

Member Function Documentation

◆ init()

void Settings::init ( )

Definition at line 33 of file settings.cpp.

34 {
35  uselonglivesprites = config.getBoolValue("uselonglivesprites");
36  showButtonIcons = config.getBoolValue("showButtonIcons");
37 #ifndef DYECMD
39 #endif // DYECMD
40 }

References config, Configuration::getBoolValue(), showButtonIcons, UserAgent::update(), and uselonglivesprites.

Field Documentation

◆ attackType

unsigned int Settings::attackType

◆ attackWeaponType

unsigned int Settings::attackWeaponType

◆ awayMode

bool Settings::awayMode

◆ cameraMode

unsigned int Settings::cameraMode

◆ configDir

std::string Settings::configDir

◆ crazyMoveState

unsigned int Settings::crazyMoveState

◆ crazyMoveType

unsigned int Settings::crazyMoveType

◆ disableGameModifiers

bool Settings::disableGameModifiers

◆ disableLoggingInGame

bool Settings::disableLoggingInGame

◆ emoteType

EmoteTypeT Settings::emoteType

Definition at line 151 of file settings.h.

Referenced by EmoteShortcut::useEmote().

◆ enableNewMailSystem

bool Settings::enableNewMailSystem

Definition at line 164 of file settings.h.

Referenced by ItemAmountWindow::finish(), and ItemContainer::mouseReleased().

◆ enableRemoteCommands

bool Settings::enableRemoteCommands

◆ fixDeadAnimation

bool Settings::fixDeadAnimation

Definition at line 159 of file settings.h.

Referenced by Client::initFeatures(), and SpriteDef::load().

◆ fixedInventorySize

unsigned int Settings::fixedInventorySize

◆ followMode

unsigned int Settings::followMode

◆ gmCharCommandSymbol

std::string Settings::gmCharCommandSymbol

Definition at line 125 of file settings.h.

Referenced by Gm::runCharCommand().

◆ gmCommandSymbol

std::string Settings::gmCommandSymbol

Definition at line 124 of file settings.h.

Referenced by Gm::runCharCommand(), and Gm::runCommand().

◆ guiAlpha

float Settings::guiAlpha

◆ imitationMode

unsigned int Settings::imitationMode

◆ inputFocused

KeyboardFocusT Settings::inputFocused

◆ limitFps

bool Settings::limitFps

◆ linkCommandSymbol

std::string Settings::linkCommandSymbol

Definition at line 126 of file settings.h.

Referenced by ItemLinkHandler::handleLink().

◆ localDataDir

std::string Settings::localDataDir

◆ logFileName

std::string Settings::logFileName

Definition at line 121 of file settings.h.

Referenced by Client::gameInit().

◆ login

std::string Settings::login

Definition at line 107 of file settings.h.

Referenced by Client::stateConnectServer1(), and WindowManager::updateTitle().

◆ magicAttackType

unsigned int Settings::magicAttackType

◆ mapDrawType

MapTypeT Settings::mapDrawType

Definition at line 150 of file settings.h.

Referenced by GameModifiers::init(), and GameModifiers::resetModifiers().

◆ mouseFocused

bool Settings::mouseFocused

◆ moveToTargetType

unsigned int Settings::moveToTargetType

◆ moveType

unsigned int Settings::moveType

◆ npcsDir

std::string Settings::npcsDir

Definition at line 119 of file settings.h.

Referenced by Dirs::initUsersDir(), Being::loadComment(), and Being::saveComment().

◆ oldUpdates

std::string Settings::oldUpdates

Definition at line 108 of file settings.h.

Referenced by DialogsManager::createUpdaterWindow(), and Client::unloadData().

◆ onlineListUrl

std::string Settings::onlineListUrl

Definition at line 115 of file settings.h.

Referenced by WhoIsOnline::downloadThread(), and Client::stateConnectServer1().

◆ options

Options Settings::options

◆ overweightPercent

unsigned int Settings::overweightPercent

◆ persistentIp

bool Settings::persistentIp

◆ pickUpType

unsigned int Settings::pickUpType

◆ playerBadgeAtRightOffset

int Settings::playerBadgeAtRightOffset

Definition at line 149 of file settings.h.

Referenced by Being::updateBadgesPosition().

◆ playerNameOffset

int Settings::playerNameOffset

Definition at line 148 of file settings.h.

Referenced by Being::updateBadgesPosition(), and Being::updateCoords().

◆ pseudoAwayMode

bool Settings::pseudoAwayMode

◆ pvpAttackType

unsigned int Settings::pvpAttackType

◆ quickDropCounter

unsigned int Settings::quickDropCounter

◆ rootDir

std::string Settings::rootDir

Definition at line 122 of file settings.h.

Referenced by Dirs::initRootDir().

◆ screenshotDir

std::string Settings::screenshotDir

Definition at line 114 of file settings.h.

Referenced by Dirs::initScreenshotDir(), and Game::saveScreenshot().

◆ serverConfigDir

std::string Settings::serverConfigDir

◆ serverName

std::string Settings::serverName

◆ showButtonIcons

bool Settings::showButtonIcons

Definition at line 165 of file settings.h.

Referenced by WindowMenu::addButton(), init(), and WindowMenu::WindowMenu().

◆ supportUrl

std::string Settings::supportUrl

◆ targetingType

unsigned int Settings::targetingType

Definition at line 145 of file settings.h.

Referenced by GameModifiers::init(), and GameModifiers::resetModifiers().

◆ tempDir

std::string Settings::tempDir

Definition at line 112 of file settings.h.

Referenced by Dirs::initTempDir().

◆ textureSize

unsigned int Settings::textureSize

Definition at line 131 of file settings.h.

Referenced by GraphicsManager::initGraphics(), and AtlasManager::loadTextureAtlas().

◆ unknownSkillsAutoTab

bool Settings::unknownSkillsAutoTab

Definition at line 163 of file settings.h.

Referenced by SkillDialog::addSkill().

◆ updateHost

std::string Settings::updateHost

Definition at line 106 of file settings.h.

Referenced by DialogsManager::createUpdaterWindow(), and Dirs::initUpdatesDir().

◆ updateMirrors

std::vector<std::string> Settings::updateMirrors

◆ updatesDir

std::string Settings::updatesDir

◆ uselonglivesprites

bool Settings::uselonglivesprites

◆ userAgent

std::string Settings::userAgent

◆ usersDir

std::string Settings::usersDir

◆ usersIdDir

std::string Settings::usersIdDir

Definition at line 118 of file settings.h.

Referenced by Dirs::initUsersDir(), and ActorManager::updateNameId().

◆ windowCaption

std::string Settings::windowCaption

The documentation for this class was generated from the following files:
Settings::tempDir
std::string tempDir
Definition: settings.h:112
Settings::serverName
std::string serverName
Definition: settings.h:113
Settings::updateMirrors
std::vector< std::string > updateMirrors
Definition: settings.h:128
Settings::oldUpdates
std::string oldUpdates
Definition: settings.h:108
Settings::linkCommandSymbol
std::string linkCommandSymbol
Definition: settings.h:126
Settings::limitFps
bool limitFps
Definition: settings.h:153
Settings::emoteType
EmoteTypeT emoteType
Definition: settings.h:151
Settings::crazyMoveType
unsigned int crazyMoveType
Definition: settings.h:133
Settings::enableRemoteCommands
bool enableRemoteCommands
Definition: settings.h:161
Settings::crazyMoveState
unsigned int crazyMoveState
Definition: settings.h:144
Settings::userAgent
std::string userAgent
Definition: settings.h:127
Settings::logFileName
std::string logFileName
Definition: settings.h:121
Settings::awayMode
bool awayMode
Definition: settings.h:157
MapType::NORMAL
@ NORMAL
Definition: maptype.h:30
Settings::playerBadgeAtRightOffset
int playerBadgeAtRightOffset
Definition: settings.h:149
Settings::showButtonIcons
bool showButtonIcons
Definition: settings.h:165
Settings::rootDir
std::string rootDir
Definition: settings.h:122
Settings::configDir
std::string configDir
Definition: settings.h:110
KeyboardFocus::Focused
@ Focused
Definition: keyboardfocus.h:29
Settings::serverConfigDir
std::string serverConfigDir
Definition: settings.h:116
Settings::mapDrawType
MapTypeT mapDrawType
Definition: settings.h:150
Settings::cameraMode
unsigned int cameraMode
Definition: settings.h:143
Settings::windowCaption
std::string windowCaption
Definition: settings.h:123
Settings::supportUrl
std::string supportUrl
Definition: settings.h:120
Settings::gmCommandSymbol
std::string gmCommandSymbol
Definition: settings.h:124
Settings::pvpAttackType
unsigned int pvpAttackType
Definition: settings.h:141
Settings::moveType
unsigned int moveType
Definition: settings.h:132
Settings::npcsDir
std::string npcsDir
Definition: settings.h:119
Settings::overweightPercent
unsigned int overweightPercent
Definition: settings.h:146
Settings::updateHost
std::string updateHost
Definition: settings.h:106
Settings::updatesDir
std::string updatesDir
Definition: settings.h:109
Settings::magicAttackType
unsigned int magicAttackType
Definition: settings.h:140
Settings::guiAlpha
float guiAlpha
Definition: settings.h:130
Settings::options
Options options
Definition: settings.h:129
Settings::localDataDir
std::string localDataDir
Definition: settings.h:111
Settings::textureSize
unsigned int textureSize
Definition: settings.h:131
Settings::pseudoAwayMode
bool pseudoAwayMode
Definition: settings.h:158
Settings::pickUpType
unsigned int pickUpType
Definition: settings.h:139
Settings::unknownSkillsAutoTab
bool unknownSkillsAutoTab
Definition: settings.h:163
Settings::imitationMode
unsigned int imitationMode
Definition: settings.h:142
Settings::onlineListUrl
std::string onlineListUrl
Definition: settings.h:115
EmoteType::Player
@ Player
Definition: emotetype.h:28
Settings::screenshotDir
std::string screenshotDir
Definition: settings.h:114
Settings::fixedInventorySize
unsigned int fixedInventorySize
Definition: settings.h:147
config
Configuration config
Definition: configuration.cpp:51
Settings::uselonglivesprites
bool uselonglivesprites
Definition: settings.h:162
Settings::moveToTargetType
unsigned int moveToTargetType
Definition: settings.h:134
Settings::playerNameOffset
int playerNameOffset
Definition: settings.h:148
Settings::disableLoggingInGame
bool disableLoggingInGame
Definition: settings.h:160
Settings::enableNewMailSystem
bool enableNewMailSystem
Definition: settings.h:164
UserAgent::update
void update()
Definition: useragent.cpp:31
Settings::mouseFocused
bool mouseFocused
Definition: settings.h:155
Settings::usersDir
std::string usersDir
Definition: settings.h:117
Settings::inputFocused
KeyboardFocusT inputFocused
Definition: settings.h:154
Settings::attackType
unsigned int attackType
Definition: settings.h:137
Settings::usersIdDir
std::string usersIdDir
Definition: settings.h:118
Settings::disableGameModifiers
bool disableGameModifiers
Definition: settings.h:156
Settings::attackWeaponType
unsigned int attackWeaponType
Definition: settings.h:136
Settings::followMode
unsigned int followMode
Definition: settings.h:135
Settings::targetingType
unsigned int targetingType
Definition: settings.h:145
Settings::gmCharCommandSymbol
std::string gmCharCommandSymbol
Definition: settings.h:125
Settings::login
std::string login
Definition: settings.h:107
Settings::fixDeadAnimation
bool fixDeadAnimation
Definition: settings.h:159
Settings::quickDropCounter
unsigned int quickDropCounter
Definition: settings.h:138
Settings::persistentIp
bool persistentIp
Definition: settings.h:152
Configuration::getBoolValue
bool getBoolValue(const std::string &key) const
Definition: configuration.cpp:596