freg
0.3
Free-Roaming Elementary Game
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
screens
IThread.h
Go to the documentation of this file.
1
/* freg, Free-Roaming Elementary Game with open and interactive world
2
* Copyright (C) 2012-2014 Alexander 'mmaulwurff' Kromm
3
* mmaulwurff@gmail.com
4
*
5
* This file is part of FREG.
6
*
7
* FREG is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* FREG is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with FREG. If not, see <http://www.gnu.org/licenses/>. */
19
20
#ifndef ITHREAD_H
21
#define ITHREAD_H
22
23
/** \class IThread IThread.h
24
* \brief Keyboard input thread for curses screen for freg.
25
*
26
* This class is thread, with IThread::run containing input loop.
27
* Can be used in console-based freg screens. */
28
29
#include <QThread>
30
31
class
Screen
;
32
33
class
IThread
final :
public
QThread {
34
Q_OBJECT
35
public
:
36
IThread
(
Screen
*);
37
void
Stop
();
38
39
protected
:
40
void
run
()
override
;
41
42
private
:
43
IThread
(
const
IThread
&) =
delete
;
44
IThread
&
operator=
(
const
IThread
&) =
delete
;
45
46
Screen
*
const
screen
;
47
volatile
bool
isRunning
;
48
};
49
50
#endif // ITHREAD_H
IThread::run
void run() override
Definition:
IThread.cpp:28
Screen
Definition:
CursedScreen.h:62
IThread::screen
Screen *const screen
Definition:
IThread.h:46
IThread::isRunning
volatile bool isRunning
Definition:
IThread.h:47
IThread::operator=
IThread & operator=(const IThread &)=delete
IThread
Keyboard input thread for curses screen for freg.
Definition:
IThread.h:33
IThread::IThread
IThread(Screen *)
Definition:
IThread.cpp:23
IThread::Stop
void Stop()
Definition:
IThread.cpp:34
Generated on Thu Oct 2 2014 23:24:13 for freg by
1.8.7