ManaPlus
settings.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2014-2019 The ManaPlus Developers
4  * Copyright (C) 2019-2021 Andrei Karas
5  *
6  * This file is part of The ManaPlus Client.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 #ifndef SETTINGS_H
23 #define SETTINGS_H
24 
25 #include "options.h"
26 
27 #include "enums/emotetype.h"
28 
30 
32 
33 #include "utils/vector.h"
34 
35 #include "localconsts.h"
36 
38 {
39  public:
41  updateHost(),
42  login(),
43  oldUpdates(),
44  updatesDir(),
45  configDir(),
46  localDataDir(),
47  tempDir(),
48  serverName(),
49  screenshotDir(),
50  onlineListUrl(),
52  usersDir(),
53  usersIdDir(),
54  npcsDir(),
55  supportUrl(),
56  logFileName(),
57  rootDir(),
58  windowCaption(),
59  gmCommandSymbol("@"),
61  linkCommandSymbol("="),
62  userAgent(),
63  updateMirrors(),
64  options(),
65  guiAlpha(1.0F),
66  textureSize(1024),
67  moveType(0U),
68  crazyMoveType(0U),
69  moveToTargetType(0U),
70  followMode(0U),
71  attackWeaponType(0U),
72  attackType(0U),
73  quickDropCounter(0U),
74  pickUpType(0U),
75  magicAttackType(0U),
76  pvpAttackType(0U),
77  imitationMode(0U),
78  cameraMode(0U),
79  crazyMoveState(0U),
80  targetingType(0U),
81  overweightPercent(50U),
82  fixedInventorySize(100U),
83  playerNameOffset(64),
87  persistentIp(true),
88  limitFps(false),
90  mouseFocused(true),
91  disableGameModifiers(false),
92  awayMode(false),
93  pseudoAwayMode(false),
94  fixDeadAnimation(true),
95  disableLoggingInGame(false),
97  uselonglivesprites(false),
99  enableNewMailSystem(true),
100  showButtonIcons(false)
101  { }
102 
104 
105  void init();
106 
107  std::string updateHost;
108  std::string login;
109  std::string oldUpdates;
110  std::string updatesDir;
111  std::string configDir;
112  std::string localDataDir;
113  std::string tempDir;
114  std::string serverName;
115  std::string screenshotDir;
116  std::string onlineListUrl;
117  std::string serverConfigDir;
118  std::string usersDir;
119  std::string usersIdDir;
120  std::string npcsDir;
121  std::string supportUrl;
122  std::string logFileName;
123  std::string rootDir;
124  std::string windowCaption;
125  std::string gmCommandSymbol;
126  std::string gmCharCommandSymbol;
127  std::string linkCommandSymbol;
128  std::string userAgent;
129  STD_VECTOR<std::string> updateMirrors;
131  float guiAlpha;
132  unsigned int textureSize;
133  unsigned int moveType;
134  unsigned int crazyMoveType;
135  unsigned int moveToTargetType;
136  unsigned int followMode;
137  unsigned int attackWeaponType;
138  unsigned int attackType;
139  unsigned int quickDropCounter;
140  unsigned int pickUpType;
141  unsigned int magicAttackType;
142  unsigned int pvpAttackType;
143  unsigned int imitationMode;
144  unsigned int cameraMode;
145  unsigned int crazyMoveState;
146  unsigned int targetingType;
147  unsigned int overweightPercent;
148  unsigned int fixedInventorySize;
154  bool limitFps;
158  bool awayMode;
167 };
168 
169 extern Settings settings;
170 
171 #endif // SETTINGS_H
std::string onlineListUrl
Definition: settings.h:116
std::string tempDir
Definition: settings.h:113
unsigned int crazyMoveState
Definition: settings.h:145
unsigned int pickUpType
Definition: settings.h:140
bool fixDeadAnimation
Definition: settings.h:160
unsigned int overweightPercent
Definition: settings.h:147
bool enableNewMailSystem
Definition: settings.h:165
bool awayMode
Definition: settings.h:158
unsigned int crazyMoveType
Definition: settings.h:134
bool disableGameModifiers
Definition: settings.h:157
unsigned int imitationMode
Definition: settings.h:143
unsigned int magicAttackType
Definition: settings.h:141
std::string gmCharCommandSymbol
Definition: settings.h:126
bool disableLoggingInGame
Definition: settings.h:161
bool persistentIp
Definition: settings.h:153
std::string localDataDir
Definition: settings.h:112
unsigned int moveType
Definition: settings.h:133
std::string oldUpdates
Definition: settings.h:109
std::string rootDir
Definition: settings.h:123
bool limitFps
Definition: settings.h:154
std::string userAgent
Definition: settings.h:128
bool enableRemoteCommands
Definition: settings.h:162
std::string linkCommandSymbol
Definition: settings.h:127
unsigned int followMode
Definition: settings.h:136
EmoteTypeT emoteType
Definition: settings.h:152
float guiAlpha
Definition: settings.h:131
std::string gmCommandSymbol
Definition: settings.h:125
int playerNameOffset
Definition: settings.h:149
std::string serverName
Definition: settings.h:114
Options options
Definition: settings.h:130
std::string usersIdDir
Definition: settings.h:119
unsigned int quickDropCounter
Definition: settings.h:139
unsigned int cameraMode
Definition: settings.h:144
int playerBadgeAtRightOffset
Definition: settings.h:150
std::string updatesDir
Definition: settings.h:110
std::vector< std::string > updateMirrors
Definition: settings.h:129
bool uselonglivesprites
Definition: settings.h:163
bool mouseFocused
Definition: settings.h:156
unsigned int attackWeaponType
Definition: settings.h:137
KeyboardFocusT inputFocused
Definition: settings.h:155
unsigned int pvpAttackType
Definition: settings.h:142
bool unknownSkillsAutoTab
Definition: settings.h:164
unsigned int textureSize
Definition: settings.h:132
std::string configDir
Definition: settings.h:111
Settings()
Definition: settings.h:40
bool showButtonIcons
Definition: settings.h:166
std::string logFileName
Definition: settings.h:122
std::string windowCaption
Definition: settings.h:124
unsigned int targetingType
Definition: settings.h:146
std::string supportUrl
Definition: settings.h:121
bool pseudoAwayMode
Definition: settings.h:159
std::string screenshotDir
Definition: settings.h:115
void init()
Definition: settings.cpp:34
MapTypeT mapDrawType
Definition: settings.h:151
unsigned int fixedInventorySize
Definition: settings.h:148
std::string serverConfigDir
Definition: settings.h:117
std::string updateHost
Definition: settings.h:107
std::string npcsDir
Definition: settings.h:120
std::string usersDir
Definition: settings.h:118
std::string login
Definition: settings.h:108
unsigned int moveToTargetType
Definition: settings.h:135
unsigned int attackType
Definition: settings.h:138
EmoteType ::T EmoteTypeT
Definition: emotetype.h:34
KeyboardFocus ::T KeyboardFocusT
Definition: keyboardfocus.h:33
#define final
Definition: localconsts.h:46
#define A_DELETE_COPY(func)
Definition: localconsts.h:53
MapType ::T MapTypeT
Definition: maptype.h:39
Settings settings
Definition: settings.cpp:32