mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-06 20:31:38 +00:00
add comments
This commit is contained in:
parent
0abde389dc
commit
a247fae572
@ -1,12 +1,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
class CVideo;
|
class CVideo;
|
||||||
|
|
||||||
|
/// Any object of this type will prevent the game from quitting immediately, instad a confirmation dialog will pop up when attepmting to close.
|
||||||
class quit_confirmation
|
class quit_confirmation
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
quit_confirmation() { ++count_; }
|
quit_confirmation() { ++count_; }
|
||||||
quit_confirmation(const quit_confirmation&) { ++count_; }
|
quit_confirmation(const quit_confirmation&) { ++count_; }
|
||||||
~quit_confirmation() { --count_; }
|
~quit_confirmation() { --count_; }
|
||||||
|
/// Shows the quit confirmation if needed, throws CVideo::quit to exit.
|
||||||
static void quit();
|
static void quit();
|
||||||
static void quit(CVideo& video );
|
static void quit(CVideo& video );
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user