Public Types | |
| enum | TypeOfScene { _Unknown =0, Loading, Title, Level, World, Credits, GameOver } |
| typedef QList< Scene_Effect > | SceneEffectsArray |
Public Member Functions | |
| void | updateTickValue () |
| Scene (TypeOfScene _type) | |
| virtual void | onKeyInput (int key) |
| Triggering when pressed game specific key. | |
| virtual void | onKeyboardPressed (SDL_Scancode scancode) |
| Triggering when pressed any key on keyboard. | |
| virtual void | onKeyboardPressedSDL (SDL_Keycode sdl_key, Uint16 modifier) |
| Triggering when pressed any key on keyboard. | |
| 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 | onMouseMoved (SDL_MouseMotionEvent &mmevent) |
| virtual void | onMousePressed (SDL_MouseButtonEvent &mbevent) |
| virtual void | onMouseReleased (SDL_MouseButtonEvent &mbevent) |
| virtual void | onMouseWheel (SDL_MouseWheelEvent &wheelevent) |
| virtual void | processEvents () |
| virtual LuaEngine * | getLuaEngine () |
| virtual void | update () |
| virtual void | updateLua () |
| virtual void | render () |
| virtual void | renderMouse () |
| virtual int | exec () |
| 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 () |
Public Attributes | |
| PGE_Fader | fader |
| SceneEffectsArray | WorkingEffects |
Protected Types | |
|
typedef std::chrono::high_resolution_clock | StClock |
|
typedef std::chrono::high_resolution_clock::time_point | StTimePt |
Protected Member Functions | |
| void | wait (float ms) |
Protected Attributes | |
| bool | running |
| bool | _doShutDown |
| bool | doExit |
| int | uTick |
| float | uTickf |
| QString | _errorString |
| void Scene::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
| effectID | ID of effect from lvl_effects.ini |
| startX | X position relative to left side of effect picture |
| startY | Y position relative to top side of effect picture |
| animationLoops | Number of loops before effect will be finished. 0 - unlimited while time is not exited |
| delay | max time of effect working. 0 - unlimited while loops are not exited or while effect still vizible of screen. |
| velocityX | Horizontal motion speed (pixels per 1/65 second [independent to framerate]) |
| velocityY | Vertical motion speed (pixels per 1/65 second [independent to framerate]) |
| gravity | Y-gravitation will cause falling of effect picture |
| phys | Additional physical settings |
| void Scene::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
| effectID | ID of effect from lvl_effects.ini |
| startX | X position relative to center of effect picture |
| startY | Y position relative to center of effect picture |
| animationLoops | Number of loops before effect will be finished. 0 - unlimited while time is not exited |
| delay | max time of effect working. 0 - unlimited while loops are not exited or while effect still vizible of screen. |
| velocityX | Horizontal motion speed (pixels per 1/65 second [independent to framerate]) |
| velocityY | Vertical motion speed (pixels per 1/65 second [independent to framerate]) |
| gravity | Y-gravitation will cause falling of effect picture |
| phys | Additional physical settings |
1.8.7