File: GameEngineUser.h

package info (click to toggle)
vcmi 1.7.2%2Bdfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 43,732 kB
  • sloc: cpp: 275,851; ansic: 734; sh: 235; xml: 163; objc: 61; makefile: 50; python: 41
file content (31 lines) | stat: -rw-r--r-- 850 bytes parent folder | download
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;
};