ManaPlus
Static Public Member Functions | Static Public Attributes | Static Protected Member Functions
GameModifiers Class Reference

#include <gamemodifiers.h>

Static Public Member Functions

static void init ()
 
static void changeMode (unsigned *const var, const unsigned limit, const char *const conf, std::string(*const func)(), const unsigned def, const bool save, const bool forward)
 
static void changeMoveType (const bool forward)
 
static std::string getMoveTypeString ()
 
static void changeCrazyMoveType (const bool forward)
 
static std::string getCrazyMoveTypeString ()
 
static void changeMoveToTargetType (const bool forward)
 
static std::string getMoveToTargetTypeString ()
 
static void changeFollowMode (const bool forward)
 
static std::string getFollowModeString ()
 
static void changeAttackWeaponType (const bool forward)
 
static std::string getAttackWeaponTypeString ()
 
static void changeAttackType (const bool forward)
 
static std::string getAttackTypeString ()
 
static void changeTargetingType (const bool forward)
 
static std::string getTargetingTypeString ()
 
static void changeQuickDropCounter (const bool forward)
 
static std::string getQuickDropCounterString ()
 
static void changePickUpType (const bool forward)
 
static std::string getPickUpTypeString ()
 
static void changeMagicAttackType (const bool forward)
 
static std::string getMagicAttackTypeString ()
 
static void changePvpAttackType (const bool forward)
 
static std::string getPvpAttackTypeString ()
 
static void changeImitationMode (const bool forward)
 
static std::string getImitationModeString ()
 
static void changeGameModifiers (const bool forward)
 
static std::string getGameModifiersString ()
 
static void changeMapDrawType (const bool forward)
 
static std::string getMapDrawTypeString ()
 
static void changeCameraMode (const bool forward)
 
static std::string getCameraModeString ()
 
static void changeAwayMode (const bool forward)
 
static std::string getAwayModeString ()
 
static void setQuickDropCounter (const int n)
 
static void resetModifiers ()
 

Static Public Attributes

static const unsigned mMoveTypeSize = 5
 
static const char *const mMoveTypeStrings [] = { (const_cast <char*>( "(D) default moves" )), (const_cast <char*>( "(I) invert moves" )), (const_cast <char*>( "(c) moves with some crazy moves" )), (const_cast <char*>( "(C) moves with crazy moves" )), (const_cast <char*>( "(d) double normal + crazy" )), (const_cast <char*>( "(?) unknown move" )) }
 
static const unsigned mCrazyMoveTypeSize = 11
 
static const char *const mCrazyMoveTypeStrings []
 
static const unsigned mMoveToTargetTypeSize = 13
 
static const char *const mMoveToTargetTypeStrings [] = { (const_cast <char*>( "(0) default moves to target" )), (const_cast <char*>( "(1) moves to target in distance 1" )), (const_cast <char*>( "(2) moves to target in distance 2" )), (const_cast <char*>( "(3) moves to target in distance 3" )), (const_cast <char*>( "(4) moves to target in distance 4" )), (const_cast <char*>( "(5) moves to target in distance 5" )), (const_cast <char*>( "(6) moves to target in distance 6" )), (const_cast <char*>( "(7) moves to target in distance 7" )), (const_cast <char*>( "(8) moves to target in distance 8" )), (const_cast <char*>( "(9) moves to target in distance 9" )), (const_cast <char*>( "(A) moves to target in attack range" )), (const_cast <char*>( "(a) archer attack range" )), (const_cast <char*>( "(B) moves to target in attack range - 1" )), (const_cast <char*>( "(?) move to target" )) }
 
static const unsigned mFollowModeSize = 4
 
static const char *const mFollowModeStrings [] = { (const_cast <char*>( "(D) default follow" )), (const_cast <char*>( "(R) relative follow" )), (const_cast <char*>( "(M) mirror follow" )), (const_cast <char*>( "(P) pet follow" )), (const_cast <char*>( "(?) unknown follow" )) }
 
static const unsigned mAttackWeaponTypeSize = 4
 
static const char *const mAttackWeaponTypeStrings [] = { (const_cast <char*>( "(?) attack" )), (const_cast <char*>( "(D) default attack" )), (const_cast <char*>( "(s) switch attack without shield" )), (const_cast <char*>( "(S) switch attack with shield" )), (const_cast <char*>( "(?) attack" )) }
 
static const unsigned mAttackTypeSize = 4
 
static const char *const mAttackTypeStrings [] = { (const_cast <char*>( "(D) default attack" )), (const_cast <char*>( "(G) go and attack" )), (const_cast <char*>( "(A) go, attack, pickup" )), (const_cast <char*>( "(d) without auto attack" )), (const_cast <char*>( "(?) attack" )) }
 
static const unsigned mTargetingTypeSize = 2
 
static const char *const mTargetingTypeStrings [] = { (const_cast <char*>( "(D) don't switch target" )), (const_cast <char*>( "(C) always attack closest" )), (const_cast <char*>( "(?) targeting" )) }
 
static const unsigned mQuickDropCounterSize = 31
 
static const char *const mQuickDropCounterStrings []
 
static const unsigned mPickUpTypeSize = 7
 
static const char *const mPickUpTypeStrings [] = { (const_cast <char*>( "(S) small pick up 1x1 cells" )), (const_cast <char*>( "(D) default pick up 2x1 cells" )), (const_cast <char*>( "(F) forward pick up 2x3 cells" )), (const_cast <char*>( "(3) pick up 3x3 cells" )), (const_cast <char*>( "(g) go and pick up in distance 4" )), (const_cast <char*>( "(G) go and pick up in distance 8" )), (const_cast <char*>( "(A) go and pick up in max distance" )), (const_cast <char*>( "(?) pick up" )) }
 
static const unsigned mMagicAttackTypeSize = 5
 
static const char *const mMagicAttackTypeStrings [] = { (const_cast <char*>( "(f) use #flar for magic attack" )), (const_cast <char*>( "(c) use #chiza for magic attack" )), (const_cast <char*>( "(I) use #ingrav for magic attack" )), (const_cast <char*>( "(F) use #frillyar for magic attack" )), (const_cast <char*>( "(U) use #upmarmu for magic attack" )), (const_cast <char*>( "(?) magic attack" )) }
 
static const unsigned mPvpAttackTypeSize = 4
 
static const char *const mPvpAttackTypeStrings [] = { (const_cast <char*>( "(a) attack all players" )), (const_cast <char*>( "(f) attack all except friends" )), (const_cast <char*>( "(b) attack bad relations" )), (const_cast <char*>( "(d) don't attack players" )), (const_cast <char*>( "(?) pvp attack" )) }
 
static const unsigned mImitationModeSize = 2
 
static const char *const mImitationModeStrings [] = { (const_cast <char*>( "(D) default imitation" )), (const_cast <char*>( "(O) outfits imitation" )), (const_cast <char*>( "(?) imitation" )) }
 
static const unsigned mGameModifiersSize = 2
 
static const char *const mGameModifiersStrings [] = { (const_cast <char*>( "Game modifiers are enabled" )), (const_cast <char*>( "Game modifiers are disabled" )), (const_cast <char*>( "Game modifiers are unknown" )) }
 
static const unsigned mMapDrawTypeSize = 7
 
static const char *const mMapDrawTypeStrings [] = { (const_cast <char*>( "(N) normal map view" )), (const_cast <char*>( "(D) debug map view" )), (const_cast <char*>( "(u) ultra map view" )), (const_cast <char*>( "(U) ultra map view 2" )), (const_cast <char*>( "(e) empty map view with collision" )), (const_cast <char*>( "(E) empty map view" )), (const_cast <char*>( "(b) black & white map view" )), (const_cast <char*>( "(?) map view" )) }
 
static const unsigned mCameraModeSize = 2
 
static const char *const mCameraModeStrings [] = { (const_cast <char*>( "(G) game camera mode" )), (const_cast <char*>( "(F) free camera mode" )), (const_cast <char*>( "(?) away" )) }
 
static const unsigned mAwayModeSize = 2
 
static const char *const mAwayModeStrings [] = { (const_cast <char*>( "(O) on keyboard" )), (const_cast <char*>( "(A) away" )), (const_cast <char*>( "(?) away" )) }
 

Static Protected Member Functions

static const char * getVarItem (const char *const *const arr, const unsigned index, const unsigned sz)
 

Detailed Description

Definition at line 35 of file gamemodifiers.h.

Member Function Documentation

◆ changeAttackType()

void GameModifiers::changeAttackType ( const bool  forward)
static

Definition at line 272 of file gamemodifiers.cpp.

275 {

Referenced by Setup_Quick::Setup_Quick().

◆ changeAttackWeaponType()

void GameModifiers::changeAttackWeaponType ( const bool  forward)
static

Definition at line 258 of file gamemodifiers.cpp.

261 {

Referenced by Setup_Quick::Setup_Quick().

◆ changeAwayMode()

void GameModifiers::changeAwayMode ( const bool  forward)
static

Definition at line 423 of file gamemodifiers.cpp.

424 {
425  if (localPlayer == nullptr)
426  return;
427 
430  localPlayer->setHalfAway(false);
435  if (settings.awayMode)
436  {
437  if (chatWindow != nullptr)
439 
442  if (outfitWindow != nullptr)
444  OkDialog *const dialog = CREATEWIDGETR(OkDialog,
445  // TRANSLATORS: away message box header
446  _("Away"),
447  serverConfig.getValue("afkMessage", "I am away from keyboard."),
448  // TRANSLATORS: ok dialog button
449  _("OK"),
451  Modal_true,
453  nullptr,
454  260);
455  localPlayer->setAwayDialog(dialog);
459  }
460  else
461  {
462  localPlayer->setAwayDialog(nullptr);
464  if (chatWindow != nullptr)
465  {
468  }
470  }
471 }
ChatWindow * chatWindow
Definition: chatwindow.cpp:94
void updateName()
Definition: being.cpp:3425
void addAfkEffect()
Definition: being.cpp:4918
void removeAfkEffect()
Definition: being.cpp:4923
void clearAwayLog()
Definition: chatwindow.h:257
void displayAwayLog() const
std::string getValue(const std::string &key, const std::string &deflt) const
void updateFrameRate(int fpsLimit)
Definition: game.cpp:1032
static Game * instance()
Definition: game.h:82
AwayListener * getAwayListener() const
Definition: localplayer.h:419
void setHalfAway(const bool n)
Definition: localplayer.h:236
void setAfkTime(const int v)
Definition: localplayer.h:413
void navigateClean()
void setAwayDialog(OkDialog *const dialog)
Definition: localplayer.h:416
void cancelFollow()
void wearAwayOutfit()
bool awayMode
Definition: settings.h:158
void volumeOff() const
void volumeRestore() const
void addActionListener(ActionListener *const actionListener)
Definition: widget.cpp:252
Configuration serverConfig
#define CREATEWIDGETR(type,...)
Definition: createwidget.h:36
#define _(s)
Definition: gettext.h:35
LocalPlayer * localPlayer
const bool Modal_true
Definition: modal.h:30
OutfitWindow * outfitWindow
Settings settings
Definition: settings.cpp:32
const bool ShowCenter_false
Definition: showcenter.h:30
SoundManager soundManager

References _, Widget::addActionListener(), Being::addAfkEffect(), Settings::awayMode, LocalPlayer::cancelFollow(), chatWindow, ChatWindow::clearAwayLog(), CREATEWIDGETR, ChatWindow::displayAwayLog(), GameModifierListener::distributeEvent(), UpdateStatusListener::distributeEvent(), LocalPlayer::getAwayListener(), ConfigurationObject::getValue(), Game::instance(), localPlayer, Modal_true, LocalPlayer::navigateClean(), outfitWindow, Being::removeAfkEffect(), serverConfig, LocalPlayer::setAfkTime(), LocalPlayer::setAwayDialog(), LocalPlayer::setHalfAway(), settings, ShowCenter_false, DialogType::SILENCE, soundManager, Game::updateFrameRate(), Being::updateName(), SoundManager::volumeOff(), SoundManager::volumeRestore(), and OutfitWindow::wearAwayOutfit().

Referenced by AwayListener::action(), LocalPlayer::setAway(), and Setup_Quick::Setup_Quick().

◆ changeCameraMode()

void GameModifiers::changeCameraMode ( const bool  forward)
static

Definition at line 484 of file gamemodifiers.cpp.

485 {
486  if (viewport != nullptr)
488 }
void toggleCameraMode()
Definition: viewport.cpp:255
Viewport * viewport
Definition: viewport.cpp:36

References Viewport::toggleCameraMode(), and viewport.

Referenced by Setup_Quick::Setup_Quick().

◆ changeCrazyMoveType()

void GameModifiers::changeCrazyMoveType ( const bool  forward)
static

Definition at line 172 of file gamemodifiers.cpp.

173 {
176  &GameModifiers::getCrazyMoveTypeString, 1, true, forward);
177 }
static void changeMode(unsigned *const var, const unsigned limit, const char *const conf, std::string(*const func)(), const unsigned def, const bool save, const bool forward)
static std::string getCrazyMoveTypeString()
static const unsigned mCrazyMoveTypeSize
Definition: gamemodifiers.h:51
unsigned int crazyMoveState
Definition: settings.h:145
unsigned int crazyMoveType
Definition: settings.h:134

References changeMode(), Settings::crazyMoveState, Settings::crazyMoveType, getCrazyMoveTypeString(), mCrazyMoveTypeSize, and settings.

Referenced by Setup_Quick::Setup_Quick().

◆ changeFollowMode()

void GameModifiers::changeFollowMode ( const bool  forward)
static

Definition at line 244 of file gamemodifiers.cpp.

247 {

Referenced by Setup_Quick::Setup_Quick().

◆ changeGameModifiers()

void GameModifiers::changeGameModifiers ( const bool  forward)
static

◆ changeImitationMode()

void GameModifiers::changeImitationMode ( const bool  forward)
static

Definition at line 367 of file gamemodifiers.cpp.

370 {

Referenced by Setup_Quick::Setup_Quick().

◆ changeMagicAttackType()

void GameModifiers::changeMagicAttackType ( const bool  forward)
static

Definition at line 343 of file gamemodifiers.cpp.

346 {

Referenced by Setup_Quick::Setup_Quick().

◆ changeMapDrawType()

void GameModifiers::changeMapDrawType ( const bool  forward)
static

Definition at line 407 of file gamemodifiers.cpp.

408 {
409  if (viewport != nullptr)
411 }
void toggleMapDrawType()
Definition: viewport.cpp:251

References Viewport::toggleMapDrawType(), and viewport.

Referenced by Setup_Quick::Setup_Quick().

◆ changeMode()

void GameModifiers::changeMode ( unsigned *const  var,
const unsigned  limit,
const char *const  conf,
std::string(*)()  func,
const unsigned  def,
const bool  save,
const bool  forward 
)
static

Definition at line 104 of file gamemodifiers.cpp.

111 {
112  if (var == nullptr)
113  return;
114 
115  if (forward)
116  {
117  (*var) ++;
118  if (*var >= limit)
119  *var = def;
120  }
121  else
122  {
123  if (*var == 0U)
124  *var = limit - 1;
125  else
126  (*var) --;
127  }
128 
129  if (save)
130  config.setValue(conf, *var);
133  const std::string str = (*func)();
134  if (str.size() > 4)
135  debugMsg(str.substr(4))
136 }
#define debugMsg(str)
Definition: chattab.h:42

References config, debugMsg, GameModifierListener::distributeEvent(), UpdateStatusListener::distributeEvent(), and Configuration::setValue().

Referenced by changeCrazyMoveType().

◆ changeMoveToTargetType()

void GameModifiers::changeMoveToTargetType ( const bool  forward)
static

Definition at line 230 of file gamemodifiers.cpp.

233 {

Referenced by Setup_Quick::Setup_Quick().

◆ changeMoveType()

void GameModifiers::changeMoveType ( const bool  forward)
static

Definition at line 163 of file gamemodifiers.cpp.

164 {
166  changeMode(&settings.moveType, mMoveTypeSize, "invertMoveDirection",
167  &GameModifiers::getMoveTypeString, 0, false, forward);
168 }
static std::string getMoveTypeString()
static const unsigned mMoveTypeSize
Definition: gamemodifiers.h:50
void setMoveState(const unsigned int n)
Definition: localplayer.h:196
unsigned int moveType
Definition: settings.h:133

References getMoveTypeString(), localPlayer, Settings::moveType, LocalPlayer::setMoveState(), and settings.

Referenced by Setup_Quick::Setup_Quick().

◆ changePickUpType()

void GameModifiers::changePickUpType ( const bool  forward)
static

Definition at line 327 of file gamemodifiers.cpp.

330 {

Referenced by Setup_Quick::Setup_Quick().

◆ changePvpAttackType()

void GameModifiers::changePvpAttackType ( const bool  forward)
static

Definition at line 357 of file gamemodifiers.cpp.

360 {

Referenced by Setup_Quick::Setup_Quick().

◆ changeQuickDropCounter()

void GameModifiers::changeQuickDropCounter ( const bool  forward)
static

Definition at line 286 of file gamemodifiers.cpp.

Referenced by Setup_Quick::Setup_Quick().

◆ changeTargetingType()

void GameModifiers::changeTargetingType ( const bool  forward)
static

Definition at line 282 of file gamemodifiers.cpp.

Referenced by Setup_Quick::Setup_Quick().

◆ getAttackTypeString()

std::string GameModifiers::getAttackTypeString ( )
static

◆ getAttackWeaponTypeString()

std::string GameModifiers::getAttackWeaponTypeString ( )
static

◆ getAwayModeString()

std::string GameModifiers::getAwayModeString ( )
static

◆ getCameraModeString()

std::string GameModifiers::getCameraModeString ( )
static

◆ getCrazyMoveTypeString()

std::string GameModifiers::getCrazyMoveTypeString ( )
static

Definition at line 179 of file gamemodifiers.cpp.

180 {
181  const unsigned int crazyMoveType = settings.crazyMoveType;
182  if (crazyMoveType < mCrazyMoveTypeSize - 1)
183  {
184  // TRANSLATORS: crazy move type in status bar
185  return strprintf(_("(%u) crazy move number %u"),
186  crazyMoveType, crazyMoveType);
187  }
188  else if (crazyMoveType == mCrazyMoveTypeSize - 1)
189  {
190  // TRANSLATORS: crazy move type in status bar
191  return _("(a) custom crazy move");
192  }
193  else
194  {
195  // TRANSLATORS: crazy move type in status bar
196  return _("(?) crazy move");
197  }
198 }
std::string strprintf(const char *const format,...)

References _, Settings::crazyMoveType, mCrazyMoveTypeSize, settings, and strprintf().

Referenced by changeCrazyMoveType(), Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().

◆ getFollowModeString()

std::string GameModifiers::getFollowModeString ( )
static

◆ getGameModifiersString()

std::string GameModifiers::getGameModifiersString ( )
static

Definition at line 377 of file gamemodifiers.cpp.

Referenced by StatusPopup::updateLabels().

◆ getImitationModeString()

std::string GameModifiers::getImitationModeString ( )
static

◆ getMagicAttackTypeString()

std::string GameModifiers::getMagicAttackTypeString ( )
static

◆ getMapDrawTypeString()

std::string GameModifiers::getMapDrawTypeString ( )
static

◆ getMoveToTargetTypeString()

std::string GameModifiers::getMoveToTargetTypeString ( )
static

◆ getMoveTypeString()

std::string GameModifiers::getMoveTypeString ( )
static

◆ getPickUpTypeString()

std::string GameModifiers::getPickUpTypeString ( )
static

◆ getPvpAttackTypeString()

std::string GameModifiers::getPvpAttackTypeString ( )
static

◆ getQuickDropCounterString()

std::string GameModifiers::getQuickDropCounterString ( )
static

Definition at line 288 of file gamemodifiers.cpp.

289 {
290  const unsigned int cnt = settings.quickDropCounter;
291  if (cnt > 9)
292  {
293  return strprintf("(%c) drop counter %u", CAST_S8(
294  'a' + cnt - 10), cnt);
295  }
296  return strprintf("(%u) drop counter %u", cnt, cnt);
297 }
#define CAST_S8
Definition: cast.h:26
unsigned int quickDropCounter
Definition: settings.h:139

References CAST_S8, Settings::quickDropCounter, settings, and strprintf().

Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().

◆ getTargetingTypeString()

std::string GameModifiers::getTargetingTypeString ( )
static

◆ getVarItem()

const char * GameModifiers::getVarItem ( const char *const *const  arr,
const unsigned  index,
const unsigned  sz 
)
staticprotected

Definition at line 138 of file gamemodifiers.cpp.

141 {
142  if (index < sz)
143  return arr[index];
144  return arr[sz];
145 }

◆ init()

void GameModifiers::init ( )
static

Definition at line 84 of file gamemodifiers.cpp.

85 {
86  settings.crazyMoveType = config.getIntValue("crazyMoveType");
87  settings.moveToTargetType = config.getIntValue("moveToTargetType");
88  settings.followMode = config.getIntValue("followMode");
89  settings.attackWeaponType = config.getIntValue("attackWeaponType");
90  settings.attackType = config.getIntValue("attackType");
91  settings.targetingType = config.getIntValue("targetingType");
92  settings.quickDropCounter = config.getIntValue("quickDropCounter");
93  settings.pickUpType = config.getIntValue("pickUpType");
94  settings.magicAttackType = config.getIntValue("magicAttackType");
95  settings.pvpAttackType = config.getIntValue("pvpAttackType");
96  settings.imitationMode = config.getIntValue("imitationMode");
98  "disableGameModifiers");
99  settings.awayMode = false;
101 // UpdateStatusListener::distributeEvent();
102 }
bool getBoolValue(const std::string &key) const
int getIntValue(const std::string &key) const
unsigned int pickUpType
Definition: settings.h:140
unsigned int imitationMode
Definition: settings.h:143
unsigned int magicAttackType
Definition: settings.h:141
unsigned int followMode
Definition: settings.h:136
unsigned int attackWeaponType
Definition: settings.h:137
unsigned int pvpAttackType
Definition: settings.h:142
unsigned int targetingType
Definition: settings.h:146
MapTypeT mapDrawType
Definition: settings.h:151
unsigned int moveToTargetType
Definition: settings.h:135
unsigned int attackType
Definition: settings.h:138
@ NORMAL
Definition: maptype.h:31

References Settings::attackType, Settings::attackWeaponType, Settings::awayMode, config, Settings::crazyMoveType, Settings::disableGameModifiers, Settings::followMode, Configuration::getBoolValue(), Configuration::getIntValue(), Settings::imitationMode, Settings::magicAttackType, Settings::mapDrawType, Settings::moveToTargetType, MapType::NORMAL, Settings::pickUpType, Settings::pvpAttackType, Settings::quickDropCounter, settings, and Settings::targetingType.

Referenced by createGuiWindows().

◆ resetModifiers()

void GameModifiers::resetModifiers ( )
static

Definition at line 490 of file gamemodifiers.cpp.

491 {
492  settings.moveType = 0;
493  settings.crazyMoveType = config.resetIntValue("crazyMoveType");
494  settings.moveToTargetType = config.resetIntValue("moveToTargetType");
495  settings.followMode = config.resetIntValue("followMode");
496  settings.attackWeaponType = config.resetIntValue("attackWeaponType");
497  settings.attackType = config.resetIntValue("attackType");
498  settings.magicAttackType = config.resetIntValue("magicAttackType");
499  settings.pvpAttackType = config.resetIntValue("pvpAttackType");
500  settings.quickDropCounter = config.resetIntValue("quickDropCounter");
501  settings.pickUpType = config.resetIntValue("pickUpType");
502  settings.targetingType = config.resetIntValue("targetingType");
504  if (viewport != nullptr)
505  {
506  if (settings.cameraMode != 0U)
508  Map *const map = viewport->getMap();
509  if (map != nullptr)
511  }
512  settings.imitationMode = config.resetIntValue("imitationMode");
514  "disableGameModifiers");
515 
518 }
bool resetBoolValue(const std::string &key)
int resetIntValue(const std::string &key)
Definition: map.h:75
void setDrawLayersFlags(const MapTypeT &n)
Definition: map.cpp:1703
unsigned int cameraMode
Definition: settings.h:144
Map * getMap() const
Definition: viewport.h:135

References Settings::attackType, Settings::attackWeaponType, Settings::cameraMode, config, Settings::crazyMoveType, Settings::disableGameModifiers, GameModifierListener::distributeEvent(), UpdateStatusListener::distributeEvent(), Settings::followMode, Viewport::getMap(), Settings::imitationMode, Settings::magicAttackType, Settings::mapDrawType, Settings::moveToTargetType, Settings::moveType, MapType::NORMAL, Settings::pickUpType, Settings::pvpAttackType, Settings::quickDropCounter, Configuration::resetBoolValue(), Configuration::resetIntValue(), Map::setDrawLayersFlags(), settings, Settings::targetingType, Viewport::toggleCameraMode(), and viewport.

◆ setQuickDropCounter()

void GameModifiers::setQuickDropCounter ( const int  n)
static

Field Documentation

◆ mAttackTypeSize

const unsigned GameModifiers::mAttackTypeSize = 4
static

Definition at line 55 of file gamemodifiers.h.

◆ mAttackTypeStrings

const char *const GameModifiers::mAttackTypeStrings = { (const_cast <char*>( "(D) default attack" )), (const_cast <char*>( "(G) go and attack" )), (const_cast <char*>( "(A) go, attack, pickup" )), (const_cast <char*>( "(d) without auto attack" )), (const_cast <char*>( "(?) attack" )) }
static

Definition at line 55 of file gamemodifiers.h.

◆ mAttackWeaponTypeSize

const unsigned GameModifiers::mAttackWeaponTypeSize = 4
static

Definition at line 54 of file gamemodifiers.h.

◆ mAttackWeaponTypeStrings

const char *const GameModifiers::mAttackWeaponTypeStrings = { (const_cast <char*>( "(?) attack" )), (const_cast <char*>( "(D) default attack" )), (const_cast <char*>( "(s) switch attack without shield" )), (const_cast <char*>( "(S) switch attack with shield" )), (const_cast <char*>( "(?) attack" )) }
static

Definition at line 54 of file gamemodifiers.h.

◆ mAwayModeSize

const unsigned GameModifiers::mAwayModeSize = 2
static

Definition at line 65 of file gamemodifiers.h.

◆ mAwayModeStrings

const char *const GameModifiers::mAwayModeStrings = { (const_cast <char*>( "(O) on keyboard" )), (const_cast <char*>( "(A) away" )), (const_cast <char*>( "(?) away" )) }
static

Definition at line 65 of file gamemodifiers.h.

◆ mCameraModeSize

const unsigned GameModifiers::mCameraModeSize = 2
static

Definition at line 64 of file gamemodifiers.h.

◆ mCameraModeStrings

const char *const GameModifiers::mCameraModeStrings = { (const_cast <char*>( "(G) game camera mode" )), (const_cast <char*>( "(F) free camera mode" )), (const_cast <char*>( "(?) away" )) }
static

Definition at line 64 of file gamemodifiers.h.

◆ mCrazyMoveTypeSize

const unsigned GameModifiers::mCrazyMoveTypeSize = 11
static

Definition at line 51 of file gamemodifiers.h.

Referenced by changeCrazyMoveType(), and getCrazyMoveTypeString().

◆ mCrazyMoveTypeStrings

const char* const GameModifiers::mCrazyMoveTypeStrings[]
static

Definition at line 51 of file gamemodifiers.h.

◆ mFollowModeSize

const unsigned GameModifiers::mFollowModeSize = 4
static

Definition at line 53 of file gamemodifiers.h.

◆ mFollowModeStrings

const char *const GameModifiers::mFollowModeStrings = { (const_cast <char*>( "(D) default follow" )), (const_cast <char*>( "(R) relative follow" )), (const_cast <char*>( "(M) mirror follow" )), (const_cast <char*>( "(P) pet follow" )), (const_cast <char*>( "(?) unknown follow" )) }
static

Definition at line 53 of file gamemodifiers.h.

◆ mGameModifiersSize

const unsigned GameModifiers::mGameModifiersSize = 2
static

Definition at line 62 of file gamemodifiers.h.

◆ mGameModifiersStrings

const char *const GameModifiers::mGameModifiersStrings = { (const_cast <char*>( "Game modifiers are enabled" )), (const_cast <char*>( "Game modifiers are disabled" )), (const_cast <char*>( "Game modifiers are unknown" )) }
static

Definition at line 62 of file gamemodifiers.h.

◆ mImitationModeSize

const unsigned GameModifiers::mImitationModeSize = 2
static

Definition at line 61 of file gamemodifiers.h.

◆ mImitationModeStrings

const char *const GameModifiers::mImitationModeStrings = { (const_cast <char*>( "(D) default imitation" )), (const_cast <char*>( "(O) outfits imitation" )), (const_cast <char*>( "(?) imitation" )) }
static

Definition at line 61 of file gamemodifiers.h.

◆ mMagicAttackTypeSize

const unsigned GameModifiers::mMagicAttackTypeSize = 5
static

Definition at line 59 of file gamemodifiers.h.

◆ mMagicAttackTypeStrings

const char *const GameModifiers::mMagicAttackTypeStrings = { (const_cast <char*>( "(f) use #flar for magic attack" )), (const_cast <char*>( "(c) use #chiza for magic attack" )), (const_cast <char*>( "(I) use #ingrav for magic attack" )), (const_cast <char*>( "(F) use #frillyar for magic attack" )), (const_cast <char*>( "(U) use #upmarmu for magic attack" )), (const_cast <char*>( "(?) magic attack" )) }
static

Definition at line 59 of file gamemodifiers.h.

◆ mMapDrawTypeSize

const unsigned GameModifiers::mMapDrawTypeSize = 7
static

Definition at line 63 of file gamemodifiers.h.

◆ mMapDrawTypeStrings

const char *const GameModifiers::mMapDrawTypeStrings = { (const_cast <char*>( "(N) normal map view" )), (const_cast <char*>( "(D) debug map view" )), (const_cast <char*>( "(u) ultra map view" )), (const_cast <char*>( "(U) ultra map view 2" )), (const_cast <char*>( "(e) empty map view with collision" )), (const_cast <char*>( "(E) empty map view" )), (const_cast <char*>( "(b) black & white map view" )), (const_cast <char*>( "(?) map view" )) }
static

Definition at line 63 of file gamemodifiers.h.

◆ mMoveToTargetTypeSize

const unsigned GameModifiers::mMoveToTargetTypeSize = 13
static

Definition at line 52 of file gamemodifiers.h.

◆ mMoveToTargetTypeStrings

const char *const GameModifiers::mMoveToTargetTypeStrings = { (const_cast <char*>( "(0) default moves to target" )), (const_cast <char*>( "(1) moves to target in distance 1" )), (const_cast <char*>( "(2) moves to target in distance 2" )), (const_cast <char*>( "(3) moves to target in distance 3" )), (const_cast <char*>( "(4) moves to target in distance 4" )), (const_cast <char*>( "(5) moves to target in distance 5" )), (const_cast <char*>( "(6) moves to target in distance 6" )), (const_cast <char*>( "(7) moves to target in distance 7" )), (const_cast <char*>( "(8) moves to target in distance 8" )), (const_cast <char*>( "(9) moves to target in distance 9" )), (const_cast <char*>( "(A) moves to target in attack range" )), (const_cast <char*>( "(a) archer attack range" )), (const_cast <char*>( "(B) moves to target in attack range - 1" )), (const_cast <char*>( "(?) move to target" )) }
static

Definition at line 52 of file gamemodifiers.h.

◆ mMoveTypeSize

const unsigned GameModifiers::mMoveTypeSize = 5
static

Definition at line 50 of file gamemodifiers.h.

◆ mMoveTypeStrings

const char *const GameModifiers::mMoveTypeStrings = { (const_cast <char*>( "(D) default moves" )), (const_cast <char*>( "(I) invert moves" )), (const_cast <char*>( "(c) moves with some crazy moves" )), (const_cast <char*>( "(C) moves with crazy moves" )), (const_cast <char*>( "(d) double normal + crazy" )), (const_cast <char*>( "(?) unknown move" )) }
static

Definition at line 50 of file gamemodifiers.h.

◆ mPickUpTypeSize

const unsigned GameModifiers::mPickUpTypeSize = 7
static

Definition at line 58 of file gamemodifiers.h.

◆ mPickUpTypeStrings

const char *const GameModifiers::mPickUpTypeStrings = { (const_cast <char*>( "(S) small pick up 1x1 cells" )), (const_cast <char*>( "(D) default pick up 2x1 cells" )), (const_cast <char*>( "(F) forward pick up 2x3 cells" )), (const_cast <char*>( "(3) pick up 3x3 cells" )), (const_cast <char*>( "(g) go and pick up in distance 4" )), (const_cast <char*>( "(G) go and pick up in distance 8" )), (const_cast <char*>( "(A) go and pick up in max distance" )), (const_cast <char*>( "(?) pick up" )) }
static

Definition at line 58 of file gamemodifiers.h.

◆ mPvpAttackTypeSize

const unsigned GameModifiers::mPvpAttackTypeSize = 4
static

Definition at line 60 of file gamemodifiers.h.

◆ mPvpAttackTypeStrings

const char *const GameModifiers::mPvpAttackTypeStrings = { (const_cast <char*>( "(a) attack all players" )), (const_cast <char*>( "(f) attack all except friends" )), (const_cast <char*>( "(b) attack bad relations" )), (const_cast <char*>( "(d) don't attack players" )), (const_cast <char*>( "(?) pvp attack" )) }
static

Definition at line 60 of file gamemodifiers.h.

◆ mQuickDropCounterSize

const unsigned GameModifiers::mQuickDropCounterSize = 31
static

Definition at line 57 of file gamemodifiers.h.

Referenced by setQuickDropCounter().

◆ mQuickDropCounterStrings

const char* const GameModifiers::mQuickDropCounterStrings[]
static

Definition at line 57 of file gamemodifiers.h.

◆ mTargetingTypeSize

const unsigned GameModifiers::mTargetingTypeSize = 2
static

Definition at line 56 of file gamemodifiers.h.

◆ mTargetingTypeStrings

const char *const GameModifiers::mTargetingTypeStrings = { (const_cast <char*>( "(D) don't switch target" )), (const_cast <char*>( "(C) always attack closest" )), (const_cast <char*>( "(?) targeting" )) }
static

Definition at line 56 of file gamemodifiers.h.


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