ManaPlus
settings.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2014-2019 The ManaPlus Developers
4  *
5  * This file is part of The ManaPlus Client.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef SETTINGS_H
22 #define SETTINGS_H
23 
24 #include "options.h"
25 
26 #include "enums/emotetype.h"
27 
29 
31 
32 #include "utils/vector.h"
33 
34 #include "localconsts.h"
35 
37 {
38  public:
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  { }
101 
103 
104  void init();
105 
106  std::string updateHost;
107  std::string login;
108  std::string oldUpdates;
109  std::string updatesDir;
110  std::string configDir;
111  std::string localDataDir;
112  std::string tempDir;
113  std::string serverName;
114  std::string screenshotDir;
115  std::string onlineListUrl;
116  std::string serverConfigDir;
117  std::string usersDir;
118  std::string usersIdDir;
119  std::string npcsDir;
120  std::string supportUrl;
121  std::string logFileName;
122  std::string rootDir;
123  std::string windowCaption;
124  std::string gmCommandSymbol;
125  std::string gmCharCommandSymbol;
126  std::string linkCommandSymbol;
127  std::string userAgent;
128  STD_VECTOR<std::string> updateMirrors;
130  float guiAlpha;
131  unsigned int textureSize;
132  unsigned int moveType;
133  unsigned int crazyMoveType;
134  unsigned int moveToTargetType;
135  unsigned int followMode;
136  unsigned int attackWeaponType;
137  unsigned int attackType;
138  unsigned int quickDropCounter;
139  unsigned int pickUpType;
140  unsigned int magicAttackType;
141  unsigned int pvpAttackType;
142  unsigned int imitationMode;
143  unsigned int cameraMode;
144  unsigned int crazyMoveState;
145  unsigned int targetingType;
146  unsigned int overweightPercent;
147  unsigned int fixedInventorySize;
153  bool limitFps;
157  bool awayMode;
166 };
167 
168 extern Settings settings;
169 
170 #endif // SETTINGS_H
Settings
Definition: settings.h:36
Settings::tempDir
std::string tempDir
Definition: settings.h:112
Settings::serverName
std::string serverName
Definition: settings.h:113
TargetCursorType::NORMAL
@ NORMAL
Definition: targetcursortype.h:30
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
MapTypeT
MapType ::T MapTypeT
Definition: maptype.h:38
keyboardfocus.h
EmoteType
Definition: emotetype.h:26
MapType
Definition: maptype.h:28
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
A_DELETE_COPY
#define A_DELETE_COPY(func)
Definition: localconsts.h:52
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
Settings::Settings
Settings()
Definition: settings.h:39
settings
Settings settings
Definition: settings.cpp:31
options.h
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
localconsts.h
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
ActorType::Player
@ Player
Definition: actortype.h:30
Settings::supportUrl
std::string supportUrl
Definition: settings.h:120
Settings::gmCommandSymbol
std::string gmCommandSymbol
Definition: settings.h:124
Options
Definition: options.h:40
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
final
#define final
Definition: localconsts.h:45
EmoteTypeT
EmoteType ::T EmoteTypeT
Definition: emotetype.h:33
Settings::updateHost
std::string updateHost
Definition: settings.h:106
emotetype.h
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
maptype.h
Settings::screenshotDir
std::string screenshotDir
Definition: settings.h:114
Settings::fixedInventorySize
unsigned int fixedInventorySize
Definition: settings.h:147
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
KeyboardFocusT
KeyboardFocus ::T KeyboardFocusT
Definition: keyboardfocus.h:32
Settings::mouseFocused
bool mouseFocused
Definition: settings.h:155
vector.h
Settings::usersDir
std::string usersDir
Definition: settings.h:117
Settings::inputFocused
KeyboardFocusT inputFocused
Definition: settings.h:154
KeyboardFocus
Definition: keyboardfocus.h:26
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
Settings::init
void init()
Definition: settings.cpp:33