mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 22:55:18 +00:00
add comments
This commit is contained in:
parent
0abde389dc
commit
a247fae572
@ -1,12 +1,14 @@
|
||||
#pragma once
|
||||
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
|
||||
{
|
||||
public:
|
||||
quit_confirmation() { ++count_; }
|
||||
quit_confirmation(const quit_confirmation&) { ++count_; }
|
||||
~quit_confirmation() { --count_; }
|
||||
/// Shows the quit confirmation if needed, throws CVideo::quit to exit.
|
||||
static void quit();
|
||||
static void quit(CVideo& video );
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user