1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
/*
* GameEngineUser.h, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
#pragma once
class IGameEngineUser
{
public:
~IGameEngineUser() = default;
/// Called when user presses hotkey that activates global lobby
virtual void onGlobalLobbyInterfaceActivated() = 0;
/// Called on every game tick for game to update its state
virtual void onUpdate() = 0;
/// Called when app shutdown has been requested in any way - exit button, Alt-F4, etc
virtual void onShutdownRequested(bool askForConfirmation) = 0;
/// Called when mobile app pauses
virtual void onAppPaused() = 0;
/// Returns true if all input events should be captured and ignored
virtual bool capturedAllEvents() = 0;
};
|