freg  0.3
Free-Roaming Elementary Game
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
IThread Class Referencefinal

Keyboard input thread for curses screen for freg. More...

#include <IThread.h>

Inheritance diagram for IThread:
Inheritance graph
[legend]
Collaboration diagram for IThread:
Collaboration graph
[legend]

Public Member Functions

 IThread (Screen *)
 
void Stop ()
 

Protected Member Functions

void run () override
 

Private Member Functions

 IThread (const IThread &)=delete
 
IThreadoperator= (const IThread &)=delete
 

Private Attributes

Screen *const screen
 
volatile bool isRunning
 

Detailed Description

Keyboard input thread for curses screen for freg.

This class is thread, with IThread::run containing input loop. Can be used in console-based freg screens.

Definition at line 33 of file IThread.h.

Constructor & Destructor Documentation

IThread::IThread ( Screen scr)

Definition at line 23 of file IThread.cpp.

IThread::IThread ( const IThread )
privatedelete

Member Function Documentation

IThread& IThread::operator= ( const IThread )
privatedelete
void IThread::run ( )
overrideprotected

Definition at line 28 of file IThread.cpp.

void IThread::Stop ( )

Definition at line 34 of file IThread.cpp.

Member Data Documentation

volatile bool IThread::isRunning
private

Definition at line 47 of file IThread.h.

Screen* const IThread::screen
private

Definition at line 46 of file IThread.h.


The documentation for this class was generated from the following files: