1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-10 23:48:04 +02:00
vcmi/client/GameEngineUser.h
Ivan Savenko d3de0d525f Removed GameEngine::curInt member
- event processing is now initiated by GameEngine instead of weird chain
engine -> player interface -> engine
- introduced GameEngineUser interface (implemented by GameInstance) to
remove mutual depedency between GameEngine and GameInstance (some
technically still remains for now, in form of some free functions)
2025-03-01 21:16:40 +00:00

26 lines
629 B
C++

/*
* 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;
/// Returns true if all input events should be captured and ignored
virtual bool capturedAllEvents() = 0;
};