ManaPlus
|
#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) |
Definition at line 35 of file gamemodifiers.h.
|
static |
|
static |
|
static |
Definition at line 423 of file gamemodifiers.cpp.
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().
|
static |
Definition at line 484 of file gamemodifiers.cpp.
References Viewport::toggleCameraMode(), and viewport.
Referenced by Setup_Quick::Setup_Quick().
|
static |
Definition at line 172 of file gamemodifiers.cpp.
References changeMode(), Settings::crazyMoveState, Settings::crazyMoveType, getCrazyMoveTypeString(), mCrazyMoveTypeSize, and settings.
Referenced by Setup_Quick::Setup_Quick().
|
static |
|
static |
Definition at line 379 of file gamemodifiers.cpp.
References config, Settings::disableGameModifiers, GameModifierListener::distributeEvent(), UpdateStatusListener::distributeEvent(), settings, and Configuration::setValue().
|
static |
|
static |
|
static |
Definition at line 407 of file gamemodifiers.cpp.
References Viewport::toggleMapDrawType(), and viewport.
Referenced by Setup_Quick::Setup_Quick().
|
static |
Definition at line 104 of file gamemodifiers.cpp.
References config, debugMsg, GameModifierListener::distributeEvent(), UpdateStatusListener::distributeEvent(), and Configuration::setValue().
Referenced by changeCrazyMoveType().
|
static |
|
static |
Definition at line 163 of file gamemodifiers.cpp.
References getMoveTypeString(), localPlayer, Settings::moveType, LocalPlayer::setMoveState(), and settings.
Referenced by Setup_Quick::Setup_Quick().
|
static |
|
static |
|
static |
Definition at line 286 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick().
|
static |
Definition at line 282 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick().
|
static |
Definition at line 272 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 258 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 421 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 481 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 179 of file gamemodifiers.cpp.
References _, Settings::crazyMoveType, mCrazyMoveTypeSize, settings, and strprintf().
Referenced by changeCrazyMoveType(), Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 244 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 377 of file gamemodifiers.cpp.
Referenced by StatusPopup::updateLabels().
|
static |
Definition at line 367 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 343 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 405 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 230 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 161 of file gamemodifiers.cpp.
Referenced by changeMoveType(), Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 327 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 357 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 288 of file gamemodifiers.cpp.
References CAST_S8, Settings::quickDropCounter, settings, and strprintf().
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
static |
Definition at line 282 of file gamemodifiers.cpp.
Referenced by Setup_Quick::Setup_Quick(), StatusPopup::updateLabels(), and StatusWindow::updateStatusBar().
|
staticprotected |
Definition at line 138 of file gamemodifiers.cpp.
|
static |
Definition at line 84 of file gamemodifiers.cpp.
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().
|
static |
Definition at line 490 of file gamemodifiers.cpp.
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.
|
static |
Definition at line 299 of file gamemodifiers.cpp.
References CAST_S32, config, GameModifierListener::distributeEvent(), UpdateStatusListener::distributeEvent(), mQuickDropCounterSize, Settings::quickDropCounter, settings, and Configuration::setValue().
|
static |
Definition at line 55 of file gamemodifiers.h.
|
static |
Definition at line 55 of file gamemodifiers.h.
|
static |
Definition at line 54 of file gamemodifiers.h.
|
static |
Definition at line 54 of file gamemodifiers.h.
|
static |
Definition at line 65 of file gamemodifiers.h.
|
static |
Definition at line 65 of file gamemodifiers.h.
|
static |
Definition at line 64 of file gamemodifiers.h.
|
static |
Definition at line 64 of file gamemodifiers.h.
|
static |
Definition at line 51 of file gamemodifiers.h.
Referenced by changeCrazyMoveType(), and getCrazyMoveTypeString().
|
static |
Definition at line 51 of file gamemodifiers.h.
|
static |
Definition at line 53 of file gamemodifiers.h.
|
static |
Definition at line 53 of file gamemodifiers.h.
|
static |
Definition at line 62 of file gamemodifiers.h.
|
static |
Definition at line 62 of file gamemodifiers.h.
|
static |
Definition at line 61 of file gamemodifiers.h.
|
static |
Definition at line 61 of file gamemodifiers.h.
|
static |
Definition at line 59 of file gamemodifiers.h.
|
static |
Definition at line 59 of file gamemodifiers.h.
|
static |
Definition at line 63 of file gamemodifiers.h.
|
static |
Definition at line 63 of file gamemodifiers.h.
|
static |
Definition at line 52 of file gamemodifiers.h.
|
static |
Definition at line 52 of file gamemodifiers.h.
|
static |
Definition at line 50 of file gamemodifiers.h.
|
static |
Definition at line 50 of file gamemodifiers.h.
|
static |
Definition at line 58 of file gamemodifiers.h.
|
static |
Definition at line 58 of file gamemodifiers.h.
|
static |
Definition at line 60 of file gamemodifiers.h.
|
static |
Definition at line 60 of file gamemodifiers.h.
|
static |
Definition at line 57 of file gamemodifiers.h.
Referenced by setQuickDropCounter().
|
static |
Definition at line 57 of file gamemodifiers.h.
|
static |
Definition at line 56 of file gamemodifiers.h.
|
static |
Definition at line 56 of file gamemodifiers.h.