Skip to content

H7AdventurePlayerController

Class in MMH7Game · MMH7Game.H7AdventurePlayerController · native, config

Object › Actor › Controller › PlayerController › GamePlayerController › SaveGameStatePlayerController › H7PlayerController › H7CombatPlayerController › H7AdventurePlayerController

Subclasses: H73PPlayerController

Using it from Lua
h7.find_all("H7AdventurePlayerController")            -- live instances
h7.find_class("MMH7Game.H7AdventurePlayerController")   -- the class
h7.hook("MMH7Game.H7AdventurePlayerController.AddResourcesToLocalPlayer", fn)

Properties

NameTypeNotes
mAutoSaveCurrentDelayintprotected
mAutoSaveFrameDelayintprotected
MAX_FLOATfloatprotected
mHeroIdCancelTradePopUpintprotected
mIsNormalCombatAboutToBeginboolprotected
mLastClickedActorActorprotected
mLastLeftClickTimefloatprotected
mRetreatingArmyH7AdventureArmyprotected
mSpawnAdventureObjTemplateH7AdventureObjectprotected
mTransitioningToCombatboolprotected
mWasMovieRunningboolprotected

Functions

NameDeclaration
AddResourcesToLocalPlayerexec function AddResourcesToLocalPlayer(int addAmount)
AddXpexec function AddXp(int XP)
AutoSaveGamefunction AutoSaveGame()
AutoSaveGameContinuefunction AutoSaveGameContinue()
BuildAllexec function BuildAll()
BuildAllBuildingsexec function BuildAllBuildings()
BuildAllBuildingsForPlayerfunction BuildAllBuildingsForPlayer(H7Player pl)
BuyAllRecruitsexec function BuyAllRecruits()
CheckInterruptHeroMovementfunction CheckInterruptHeroMovement()
CheckOutOfSynchfunction CheckOutOfSynch(int ToPlayer)
ClientAutoMergeRemainingPoolsimulated reliable client function ClientAutoMergeRemainingPool(int heroId)
ClientPauseTurnTimersimulated reliable client function ClientPauseTurnTimer(bool Paused)
ClientSimTurnAnswerStartCombatsimulated reliable client function ClientSimTurnAnswerStartCombat(H7StructsAndEnums.ESimTurnStartCombatAnswer answer, int heroId)
ClientUpdateArmyXPsimulated reliable client function ClientUpdateArmyXP(int heroId, int Exp)
CompleteTreasureHuntexec function CompleteTreasureHunt()
ContinueContextexec function ContinueContext()
ContinueContextOrChatexec function ContinueContextOrChat()
ContinueHeroMoveexec function ContinueHeroMove()
CoverFogTestexec function CoverFogTest()
DeferredQuickLoadPopupfunction DeferredQuickLoadPopup()
DehighlightAdventureObjectsexec function DehighlightAdventureObjects()
DoCurrentArmyActionByCursorfunction DoCurrentArmyActionByCursor()
DoubleArmyexec function DoubleArmy()
DoubleClickexec function DoubleClick()
DumpCurrentStateexec function DumpCurrentState()
EndPlayerTurnexec function EndPlayerTurn()
FlagSelectedfunction FlagSelected(H7CouncilFlagActor HitActor, H7CouncilMapManager managerRef)
GetActorUnderMousefunction bool GetActorUnderMouse(optional out ImpactInfo finalHitInfo)
GetAdventurePlayerControllerstatic function H7AdventurePlayerController GetAdventurePlayerController()
GetAvailableItemsfunction array<H7HeroItem> GetAvailableItems()
GetFogfunction bool GetFog()
GetRetreatingArmyfunction H7AdventureArmy GetRetreatingArmy()
GiveItemexec function GiveItem(string itemArchetypeName)
HighlightAdventureObjectsexec function HighlightAdventureObjects()
IsMovieSkippedLastFramefunction bool IsMovieSkippedLastFrame()
IsNormalCombatAboutToBeginfunction bool IsNormalCombatAboutToBegin()
LeftMouseDownexec function LeftMouseDown()
LockCameraexec function LockCamera()
MergeArmyDownexec function MergeArmyDown()
MergeArmyUpexec function MergeArmyUp()
OpenCaravanexec function OpenCaravan()
OpenCustom1exec function OpenCustom1()
OpenCustom2exec function OpenCustom2()
OpenGuildOfThievesexec function OpenGuildOfThieves()
OpenHallOfHeroesexec function OpenHallOfHeroes()
OpenHeroWindowexec function OpenHeroWindow()
OpenLoadWindowexec function OpenLoadWindow()
OpenMagicGuildexec function OpenMagicGuild()
OpenMainBuildingexec function OpenMainBuilding()
OpenMarketPlaceexec function OpenMarketPlace()
OpenOptionsexec function OpenOptions()
OpenQuestLogexec function OpenQuestLog()
OpenRecruitmentWindowexec function OpenRecruitmentWindow()
OpenSaveWindowexec function OpenSaveWindow()
OpenSkillwheelexec function OpenSkillwheel()
OpenSpellBookexec function OpenSpellBook()
OpenTownDefenseexec function OpenTownDefense()
OpenTownPopupfunction OpenTownPopup(H7StructsAndEnums.ETownPopup PopUp)
OpenWarfareexec function OpenWarfare()
OutlineAdventureObjectfunction OutlineAdventureObject(H7AdventureObject advObject, optional Color OutlineColor = MakeColor(128, 128, 128, 255), optional bool showOutline = true)
PerformAutoAIexec function PerformAutoAI(bool IsActive, optional bool AllowQuickCombat = true, optional bool SkipMove = false)
PlayerTickevent PlayerTick(float DeltaTime)
PlusLevelexec function PlusLevel()
PlusResourcesexec function PlusResources()
PlusSkillpointexec function PlusSkillpoint()
QueueAutoSaveGamefunction QueueAutoSaveGame()
QuickLoadexec function QuickLoad()
QuickLoadConfirmfunction QuickLoadConfirm()
QuickSaveexec function QuickSave()
QuickSaveContinuefunction QuickSaveContinue()
QuickSaveExistsfunction bool QuickSaveExists()
ReleaseLeftMouseexec function ReleaseLeftMouse()
ReleaseRightMouseexec function ReleaseRightMouse()
RequestCancelEndTurnreliable server function RequestCancelEndTurn()
ResetEndTurnsimulated reliable client function ResetEndTurn()
RevealFogexec function RevealFog(optional int PlayerNumber = -1)
RightMouseDownexec function RightMouseDown()
SelectHerofunction SelectHero(int Index)
SelectHero1exec function SelectHero1()
SelectHero10exec function SelectHero10()
SelectHero2exec function SelectHero2()
SelectHero3exec function SelectHero3()
SelectHero4exec function SelectHero4()
SelectHero5exec function SelectHero5()
SelectHero6exec function SelectHero6()
SelectHero7exec function SelectHero7()
SelectHero8exec function SelectHero8()
SelectHero9exec function SelectHero9()
SelectNextWeekexec function SelectNextWeek(string weekArchetypeName)
SelectTownfunction SelectTown(int Index)
SelectTown1exec function SelectTown1()
SelectTown10exec function SelectTown10()
SelectTown2exec function SelectTown2()
SelectTown3exec function SelectTown3()
SelectTown4exec function SelectTown4()
SelectTown5exec function SelectTown5()
SelectTown6exec function SelectTown6()
SelectTown7exec function SelectTown7()
SelectTown8exec function SelectTown8()
SelectTown9exec function SelectTown9()
SendAutoMergeRemainingPoolfunction SendAutoMergeRemainingPool(H7AdventureArmy Army)
SendEveryoneFinishedLoadingsimulated reliable client function SendEveryoneFinishedLoading()
SendInitStartAdventureMapsimulated reliable client function SendInitStartAdventureMap()
SendPreInitStartAdventureMapsimulated reliable client function SendPreInitStartAdventureMap()
SendSimTurnAnswerStartCombatreliable server function SendSimTurnAnswerStartCombat(H7StructsAndEnums.ESimTurnStartCombatAnswer answer, int heroId, int ToPlayer)
SendStartCombatFinishedsimulated reliable client function SendStartCombatFinished(bool isRetreatFinished, bool isCombatCanceled, bool IsNormalCombatAboutToBegin)
SendUpdateArmyXPfunction SendUpdateArmyXP(H7AdventureArmy Army)
SendUpdateHeroPositionfunction SendUpdateHeroPosition(int heroId, int cellId)
ServerAutoMergeRemainingPoolreliable server function ServerAutoMergeRemainingPool(int heroId)
ServerPauseTurnTimerreliable server function ServerPauseTurnTimer(bool Paused)
ServerUpdateArmyXPreliable server function ServerUpdateArmyXP(int heroId, int Exp)
SetCinematicModefunction SetCinematicMode(bool bInCinematicMode, bool bHidePlayer, bool bAffectsHUD, bool bAffectsMovement, bool bAffectsTurning, bool bAffectsButtons)
SetFlythroughRunningfunction SetFlythroughRunning(bool val, optional bool ToggleHUD = true, optional bool toggleCinematic = true, optional bool toggleFog = true)
SetFogexec function SetFog(bool val)
SetNormalCombatAboutToBeginfunction SetNormalCombatAboutToBegin(bool NewValue)
SetRetreatingArmyfunction SetRetreatingArmy(H7AdventureArmy newRetreatingArmy)
SetTogglePlaneWithoutExplorationexec function SetTogglePlaneWithoutExploration(bool val)
SetTransitioningToCombatfunction SetTransitioningToCombat(bool val)
SetWinAllCheatexec function SetWinAllCheat(bool val)
ShowRealmOverviewexec function ShowRealmOverview()
SkipAITurnexec function SkipAITurn()
SpawnAdventureObjectexec function H7AdventureObject SpawnAdventureObject(int X, int Y, optional H7AdventureObject objTemplate)
SpawnArmyfunction H7AdventureArmy SpawnArmy(H7AdventureMapCell targetCell, int PlayerNumber, Rotator SpawnRotation, Actor Template, optional bool isStartHero = false)
SpawnCaravanOutpostexec function SpawnCaravanOutpost()
StartRetreatingfunction StartRetreating(H7AdventureHero sourceHero)
SwapArmiesexec function SwapArmies()
TeleportHeroexec function TeleportHero()
TeleportTofunction bool TeleportTo(H7AdventureMapCell targetCell, H7AdventureArmy currentArmy)
TestGUIHighlightexec function TestGUIHighlight()
ToggleFlythroughfunction ToggleFlythrough(bool val, optional bool ToggleHUD = true, optional bool toggleCinematicView = true, optional bool toggleFog = true)
toggleFogexec function toggleFog()
ToggleMenuexec function ToggleMenu()
ToggleMiniMapOptionsexec function ToggleMiniMapOptions()
ToggleTableexec function ToggleTable()
TownBrowsefunction TownBrowse(int Dir)
TownNextexec function TownNext()
TownPrevexec function TownPrev()
UnlimitedBuildingexec function UnlimitedBuilding(bool IsSelected)
UnlimitedManaexec function UnlimitedMana(bool IsSelected)
UnlimitedMovementexec function UnlimitedMovement(bool IsSelected)
UpdateArmyPositionfunction UpdateArmyPosition(H7AdventureMapCell cell, H7AdventureArmy Army)
UpdateHeroPositionsimulated reliable client function UpdateHeroPosition(int heroId, int cellId)

Default values

MAX_FLOAT=340000000000000000000000000000000000000.0000000
mAutoSaveFrameDelay=5
mAutoSaveCurrentDelay=-1

Inherited

FromMembers
H7CombatPlayerControllerProperties: mCombatController, mCombatMapGridController, mIsUnitActionBlockedForMouseRelease, mLastTimeSynchedUpArmies, mLeftMouseDown, mLeftMouseDownMouseCoordinates, mLeftMouseDownTimer, mLeftMouseDownUnit, mRotationSelectLockInDone
Functions: ArmyVictoryCameraAction, CancelSpellOnMouse, CastInstaKillSpell, CheckOutOfSynch, ClientCheckOutOfSynch, ClientCommandCancelled, ClientDamageApply, ClientGameWentOOSMessage, ClientHostLeftGame, ClientInstantCommand, ClientPlayerDisconnected, ClientPlayUnitCommand, ClientPlayUnitCommandConvertedPath, ClientPlayUnitCommandWithExtPath, ClientPlayUnitCommandWithPath, ClientStartSynchUp, ClientSynchUp, ClientSynchUpArmy, ClientSynchUpCombatUnit, ClientTacticsPhaseFinished, ContinueContextOrChat, DoDefend, DoWait, FadeFromBlack, FadeFromWhite, FadeToBlack, FadeToWhite, GetCombatController, GetCombatMapGridController, GetCombatPlayerController, GetICUAC, GetLeftMouseDownTimer, GetPlayerControllerByNumber, HostIsReady, IntroduceHero, IsInRotationSelectMode, IsLeftMouseDown, IsSimTurnAIPlaying, IsSimTurnCommandMode, LearnAllSpells, LeftMouseDown, MousePastRotationSelectionThreshold, NotifyHostMigrationStarted, OpenSpellBook, PlayerTick, PresentArmy, ReleaseLeftMouse, ReleaseRightMouse, RightMouseDown, SelectHeroDefaultAttack, SendCombatSynchUpData, SendDamageApply, SendGameWentOOS, SendInitStartCombat, SendInstantCommand, SendPlayCommand, SendPlayerDisconnected, SendPreInitStartCombat, SendRefillRNGPool, SendSynchUpData, SendTacticsPhaseFinished, ServerCheckOutOfSynch, ServerDamageApply, ServerGameWentOOS, ServerGameWentOOSMessage, ServerHostLeftGame, ServerInstantCommand, ServerPlayerDisconnected, ServerPlayUnitCommand, ServerPlayUnitCommandWithExtPath, ServerPlayUnitCommandWithPath, ServerSynchUp, ServerSynchUpArmy, ServerSynchUpCombatUnit, ServerTacticsPhaseFinished, SetIsUnrealInputAllowed, SetUnitActionBlockedForMouseRelease, ToggleCreatureHpBars, ToggleMenu
H7PlayerControllerProperties: GeneralPanningSensitivity, IsInverted, IsPanningDown, IsPanningLeft, IsPanningMouse, IsPanningRight, IsPanningUp, KeyboardPanningSensitivity, KeyboardRotatingSensitivity, mActiveProfile, mAllowInput, mAllowInputFromKismet, mAlwaysQuickCombat, mBeforeSaveResolution, mBeforeSaveWindowMode, mBorderPan, mBufferedCommandResolution, mBufferedCommandResolution_Params, mBufferedCommandWindowMode, mBufferedCommandWindowMode_Params, mCacheGameSpeed, mCameraActionIsRunning, mCinematicTime, mCinematicWasSkipped, mCuesThisFrame, mCurrMoveDir, mCursorDirection, mCursorWasInit, mDidToggle, mEnableCouncilAnimations, mGameStarted, mHideCursor, mHUDMouseOver, mHUDMouseOverCounter, mIsAutoSkilling, mIsCaravanTurn, mIsCommandRequested, mIsFlythroughRunning, mIsInCinematicView, mIsInLoadingScreen, mIsMouseMoving, mIsPlayInEditor, mKeybindManager, mLastMousePosition, mMessageSystem, mMouseWheelCapturedByFlash, mMovieSkippedLastFrame, mOptionManager, MousePanningCache, MouseRotatingSensitivity, MouseRotationAllowed, MouseWheelBackward, MouseWheelForward, MouseWheelHoldTimer, MouseX, MouseY, mPatchingController, mPopupIsOpen, mResolutionRevertSeconds, mRetroFilter, mShiftDown, mShowUnreachableServers, mSkipNextCursorChange, mTownAssetLoader, mUserClicked, mUserClickedPrevious, mWasCinematicRunning, PanningMouseSensitivity, StartPanPosition
Functions: ApplyBufferedCommands, ApplyGameModeGfxSettings, BorkSampuls, BugIt, CaptureMouseWheel, CheckEnableMouse, CleanMovie, ClearCommandQueue, ClientLobbyChat, ClientLobbyStartGame, ClientLobbySystemChat, ClientMessage, ClientWasKicked, CreateKeybindManager, CurrentContextBlocksKeybind, DebugChangeFPS, DeleteKeyBindByKey, DeleteSession, Destroyed, DoQuickBarAction, DumpTweens, EgoCam, EnableMouse, FindAllInterpActors, FlushKeys, ForceUpdateUPlay, FOV, FreeCam, GetAdventureHud, GetAlwaysQuickCombat, GetAutoSkilling, GetBindByCommand, GetBindByKey, GetBindOrAliasByCommand, GetBloom, GetBorderPan, GetCombatMapHud, GetCursorDirection, GetDistortion, GetDolly, GetDynamicShadows, GetGeneralPanningSensitivity, GetH7Player, GetHTMLWithKeyBind, GetHUD, GetIsMousePanning, GetKeybindManager, GetKeyboardPanningSensitivity, GetKeyboardRotatingSensitivity, GetLandscapeQuality, GetLandscapeQualityList, GetLocalizedKeyCaption, GetLocalPlayer, GetMainHUD, GetMainMenuHud, GetMessageSystem, GetMousePanDiff, GetMousePanInvertion, GetMousePosition, GetMouseRotatingSensitivity, GetMouseWheel, GetOptionManager, GetPanningHorizontal, GetPanningVertical, GetParticleQuality, GetParticleQualityList, GetPatchingController, GetPlayerController, GetPlayerInput, GetPlayerNameHTMLColored, GetPlayerReplicationInfo, GetRotation, GetScreenResolution, GetSecondaryHUD, GetShaderQuality, GetShaderQualityList, GetSkelMeshQuality, GetSkelMeshQualityList, GetStaticMeshQuality, GetStaticMeshQualityList, GetTownAssetLoader, GetVSync, GetWindowMode, GetWindowModeList, H7UpdateAllComponents, H7UpdateLandscapeComponents, HandleCinematicEnd, HandleCinematics, HideCursor, HUDMouseOut, HUDMouseOver, HUDSubElementMouseOverBeforeHudMouseOver, InitLoadingScreen, IsCameraActionRunning, IsCaravanTurn, IsCommandRequested, IsFlythroughRunning, IsInCinematicView, IsInLoadingScreen, IsInputAllowed, IsKeyInputAllowed, IsKismetAllowsInput, IsLookInputIgnored, IsMouseLockedToWindow, IsMouseMoving, IsMouseOverHUD, IsMouseWheelCapturedByFlash, IsPopupOpen, IsServer, IsShiftDown, IsUnrealAllowsInput, MakeSampuls, MouseEnabledTick, MoveArmy, MoveArmyByNumpadInput, MoveEast, MoveNorth, MoveNorthEast, MoveNorthWest, MoveSouth, MoveSouthEast, MoveSouthWest, MoveStop, MoveWest, Nouplay, OnDestroySessionComplete, OpenedSpellbook, PanningCameraMovement, PauseMenuOpened, PlayerTick, PostBeginPlay, PrepareQuickBarAction, PrintProfile, ReleaseRightMouse, ResetAllSteamworksStatsAndAchievements, ResetCamera, ResetCutsceneFlags, ResetHUDOverCounter, ResetInputMappings, ResetOptions, RestartCombatHud, RetroFilter, RevertResolution, RightMouseDown, SayMyName, SendLobbyChat, SendLobbyStartGame, SendLobbySystemChat, SendPlayerReady, ServerLobbyChat, ServerLobbySetPlayerArmy, ServerLobbySetPlayerColor, ServerLobbySetPlayerFaction, ServerLobbySetPlayerHero, ServerLobbySetPlayerPosition, ServerLobbySetPlayerReady, ServerLobbySetPlayerStartBonus, ServerLobbySetPlayerTeam, SetAlwaysQuickCombat, SetAutoSkilling, SetBigHead, SetBloom, SetBorderPan, SetBufferedCommand_Resolution, SetBufferedCommand_WindowMode, SetCameraActionRunning, SetCaravanTurn, SetChristmasMode, SetCinematicControls, SetCinematicVisibilities, SetCommandRequested, SetCursor, SetCursorTexture, SetDistortion, SetDynamicShadows, SetDynamicShadowsDeffered, SetFlagVisibility, SetFlythroughRunning, SetGeneralPanningSensitivity, SetInLoadingScreen, SetInputAllowedFromKismet, SetIsPopupOpen, SetIsUnrealInputAllowed, SetKeyboardPanningSensitivity, SetKeyboardRotatingSensitivity, SetLandscapeQuality, SetLightShafts, SetMainHUD, SetMouseLockedToWindow, SetMousePanInvertion, SetMouseRotatingSensitivity, SetMouseWheelBackward, SetMouseWheelForward, SetParticleQuality, SetPause, SetPixellated, SetRMGSettings, SetSecondaryHUD, SetShaderQuality, SetShiftFalse, SetShiftTrue, SetSkelMeshQuality, SetStaticMeshQuality, SetTempBind, SetVSync, SetWindowMode, SkipMovie, StartPanMouse, StopPanMouse, TestRounding, TickResolution, toggleCinematicView, ToggleEventLog, ToggleFlythrough, ToggleGrid, ToggleMenu, TogglePopup, ToggleSRGB, TraceAllButLandscape, UnLoadCursorObject, UnlockAllRewards, UpdateRMGString, UpdateRotation
SaveGameStatePlayerControllerProperties: mCanPoll, mCheckTaskSucceeded, mDeleteTaskSucceeded, mIsQuickSaving, mLoadedThisTick, mLoadTaskSucceeded, mPostSlotCheck, mPreSlotCheck, mSavedThisTick, mSaveGameHeaderManager, mSaveGameList, mSaveGameScanner, mSaveLoadTasks, mSaveTaskSucceeded, mScannedSaves, mScanningSaves, mSlotCheckMP, mSlotCheckStatus, mWantsQuickLoad
Functions: CacheSaves, ClearSavesCache, ComputeTick, DeleteSaveGame, DeleteSaveGameInUplay, ExitHeroes, GetHUD, GetIndexOf, GetSavegameDataForSlot, GetSaveGameHeaderManager, GetSaveGameHeaderManagerForSaveGame, GetSaveGameList, GetSlotIdMP, LoadGameState, LoadPlayerProfileState, mOnDeleteComplete, PostBeginPlay, ProcessScan, ProcessScanMP, Savegame, SaveGameComplete, SaveGameExists, SaveGameSort, SavePlayerProfileState, ScanComplete, ScanForAllSaveGames, ScanForAllSaveGamesMP, ScrubFileName, ScrubScannerSaveName, ScrubUserSaveName, SortSaveGameList, StopScan
GamePlayerController5 properties, 18 functions
PlayerController109 properties, 400 functions
Controller62 properties, 129 functions
Actor156 properties, 262 functions
Object13 properties, 308 functions