JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WorkFactory Class Reference

Public Member Functions

 WorkFactory (std::function< std::shared_ptr< Work >()>)
 
- Public Member Functions inherited from Work
virtual void onBackEvent ()
 Gets called when the "back" button is pressed (important on Android) More...
 
virtual void onQuitEvent ()
 Gets called when the user closes the main window or quit() has been called. More...
 
virtual void onControllerBack ()
 Gets called when the "Back" button is pressed on any connected controller (Android only) More...
 
virtual void onPauseEvent ()
 Gets called when the main window loses focus or the app is put in the background. More...
 
virtual void onLoad ()
 Gets called when the Work is activated by App::mainLoop()
 
- Public Member Functions inherited from Job
virtual void step ()=0
 Advance the game logic. More...
 
virtual void draw () const =0
 Draw the game state. More...
 
 Job ()=default
 Does nothing.
 
 Job (const Job &)=default
 Copy constructor.
 
Joboperator= (const Job &)=default
 Copy assignment.
 
 Job (Job &&)=default
 Move constructor.
 
Joboperator= (Job &&)=default
 Move assignment.
 
virtual ~Job ()
 Does nothing.
 

Detailed Description

Definition at line 10 of file WorkFactory.hpp.

Inheritance diagram for WorkFactory:
[legend]
Collaboration diagram for WorkFactory:
[legend]

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