PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
TitleScene Class Reference
Inheritance diagram for TitleScene:
Scene

Public Types

enum  CurrentMenu {
  menu_main =0, menu_options, menu_playlevel, menu_playlevel_wait,
  menu_playepisode, menu_playepisode_wait, menu_playbattle, menu_playbattle_wait,
  menu_opensave, menu_tests, menu_testboxes, menu_controls,
  menu_controls_plr1, menu_controls_plr2, menu_videosettings, menu_player,
  menu_volume, menu_dummy_and_big, menuFirst =menu_main, menuLast =menu_dummy_and_big
}
 
enum  menuAnswer {
  ANSWER_EXIT =0, ANSWER_PLAYLEVEL, ANSWER_PLAYEPISODE, ANSWER_PLAYEPISODE_2P,
  ANSWER_PLAYBATTLE, ANSWER_CREDITS, ANSWER_LOADING, ANSWER_GAMEOVER
}
 
- Public Types inherited from Scene
enum  TypeOfScene {
  _Unknown =0, Loading, Title, Level,
  World, Credits, GameOver
}
 
typedef QList< Scene_EffectSceneEffectsArray
 

Public Member Functions

bool init ()
 
void onKeyboardPressed (SDL_Scancode scancode)
 Triggering when pressed any key on keyboard.
 
void onKeyboardPressedSDL (SDL_Keycode sdl_key, Uint16 modifier)
 Triggering when pressed any key on keyboard.
 
void onMouseMoved (SDL_MouseMotionEvent &mmevent)
 
void onMousePressed (SDL_MouseButtonEvent &mbevent)
 
void onMouseWheel (SDL_MouseWheelEvent &wheelevent)
 
LuaEnginegetLuaEngine ()
 
void processEvents ()
 
void update ()
 
void render ()
 
void renderMouse ()
 
void processMenu ()
 
int exec ()
 
void resetController ()
 
- Public Member Functions inherited from Scene
void updateTickValue ()
 
 Scene (TypeOfScene _type)
 
virtual void onKeyInput (int key)
 Triggering when pressed game specific key.
 
virtual void onKeyboardReleased (SDL_Scancode scancode)
 Triggering when pressed any key on keyboard.
 
virtual void onKeyboardReleasedSDL (SDL_Keycode sdl_key, Uint16 modifier)
 Triggering when pressed any key on keyboard.
 
virtual void onMouseReleased (SDL_MouseButtonEvent &mbevent)
 
virtual void updateLua ()
 
TypeOfScene type ()
 
void addRenderFunction (const std::function< void()> &renderFunc)
 
void clearRenderFunctions ()
 
virtual bool isVizibleOnScreen (PGE_RectF &rect)
 
virtual bool isVizibleOnScreen (double x, double y, double w, double h)
 
bool isExiting ()
 
bool doShutDown ()
 
bool isOpacityFadding ()
 
void setFade (int speed, float target, float step)
 
void launchStaticEffect (long effectID, float startX, float startY, int animationLoops, int delay, float velocityX, float velocityY, float gravity, int direction=0, Scene_Effect_Phys phys=Scene_Effect_Phys())
 launchStaticEffect Starts static effect by ID at position X,Y relative to left-top corner of effect picture More...
 
void launchStaticEffectC (long effectID, float startX, float startY, int animationLoops, int delay, float velocityX, float velocityY, float gravity, int direction=0, Scene_Effect_Phys phys=Scene_Effect_Phys())
 launchStaticEffectC Starts static effect by ID at position X,Y relative to center of effect picture More...
 
void processEffects (float ticks)
 
QString errorString ()
 

Static Public Member Functions

static int findEpisodes (void *)
 
static int findLevels (void *)
 

Public Attributes

PGE_Menu menu
 
int numOfPlayers
 
PlayEpisodeResult result_episode
 
PlayLevelResult result_level
 
Controllercontroller
 
- Public Attributes inherited from Scene
PGE_Fader fader
 
SceneEffectsArray WorkingEffects
 

Static Public Attributes

static SDL_Thread * filefind_thread =NULL
 
static QString filefind_folder =""
 
static QList< QPair< QString,
QString > > 
filefind_found_files
 
static bool filefind_finished =false
 

Additional Inherited Members

- Protected Types inherited from Scene
typedef
std::chrono::high_resolution_clock 
StClock
 
typedef
std::chrono::high_resolution_clock::time_point 
StTimePt
 
- Protected Member Functions inherited from Scene
void wait (float ms)
 
- Protected Attributes inherited from Scene
bool running
 
bool _doShutDown
 
bool doExit
 
int uTick
 
float uTickf
 
QString _errorString
 

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