Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
src
app
pausemanager.h
Go to the documentation of this file.
1
// * This file is part of the COLOBOT source code
2
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
3
// * Copyright (C) 2012, Polish Portal of Colobot (PPC)
4
// *
5
// * This program is free software: you can redistribute it and/or modify
6
// * it under the terms of the GNU General Public License as published by
7
// * the Free Software Foundation, either version 3 of the License, or
8
// * (at your option) any later version.
9
// *
10
// * This program is distributed in the hope that it will be useful,
11
// * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// * GNU General Public License for more details.
14
// *
15
// * You should have received a copy of the GNU General Public License
16
// * along with this program. If not, see http://www.gnu.org/licenses/.
17
22
#pragma once
23
24
#include "
common/singleton.h
"
25
#include "
sound/sound.h
"
26
27
#include <string>
28
29
30
enum
PauseType {
31
PAUSE_NONE = 0,
32
PAUSE_USER,
33
PAUSE_SATCOM,
34
PAUSE_SATCOMMOVIE,
35
PAUSE_DIALOG,
36
PAUSE_EDITOR,
37
PAUSE_VISIT,
38
PAUSE_CHEAT,
39
PAUSE_PHOTO
40
};
41
42
class
CPauseManager
:
public
CSingleton
<CPauseManager>
43
{
44
public
:
45
CPauseManager
();
46
~
CPauseManager
();
47
48
void
SetPause(PauseType pause);
49
void
ClearPause();
50
bool
GetPause();
51
bool
GetPause(PauseType pause);
52
PauseType GetPauseType();
53
54
private
:
55
std::string GetPauseName(PauseType pause);
56
57
private
:
58
CSoundInterface
* m_sound;
59
60
PauseType m_pause;
61
};
62
Generated on Sat Jul 5 2014 09:25:01 for Colobot by
1.8.1.2