|
The Game Engine
1
|
this file should contain all Behaviors for Levels
Should be of the form Level<name>Load, Level<name>Update, Level<name>Unload, etc.
More...
#include "Game.h"#include "Level.h"#include "Text.h"#include "Input.h"#include "Behaviors.h"#include "Player.h"#include "Collision.h"#include <SDL/SDL_ttf.h>#include "Audio.h"
Include dependency graph for LevelFns.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| void | LevelWorldLoad () |
| void | LevelWorldUpdate () |
| void | handleKeyReleases (SDLKey k, SDLMod m) |
| void | handleKeyPress (SDLKey k, SDLMod m) |
| void | handleMouseReleases (Uint8 b, Input::MouseState m) |
| void | handleMousePress (Uint8 b, Input::MouseState m) |
| void | handleMouseMove (Input::MouseState m) |
| void | handleJoyButtonDown (Uint8 jp, JoyButton b) |
| void | handleJoyButtonUp (Uint8 jp, JoyButton b) |
| void | handleJoyMove (Uint8 jp, JoyStick s, Point2D pos) |
| void | printSuccess (string s) |
| void | printFailed (string s) |
| void | removeself (Input::MouseState m) |
| void | removeself2 (Uint8, JoyButton j) |
| void | removeself3 (Uint8, JoyButton j) |
| void | removeself4 (Uint8, JoyStick, Point2D) |
| void | removeself5 (Uint8 b, Input::MouseState s) |
| void | removeself6 (Uint8 b, Input::MouseState s) |
| void | removeself7 (SDLKey, SDLMod) |
| void | removeself8 (SDLKey, SDLMod) |
| void | TestLoad () |
| void | TestUpdate () |
Variables | |
| int | success =0 |
| int | failed =0 |
| bool | testsDone = false |
| set this to true to end tests. More... | |
| Audio | beattone |
this file should contain all Behaviors for Levels
Should be of the form Level<name>Load, Level<name>Update, Level<name>Unload, etc.
Definition in file LevelFns.h.
| void handleJoyButtonDown | ( | Uint8 | jp, |
| JoyButton | b | ||
| ) |
| void handleJoyButtonUp | ( | Uint8 | jp, |
| JoyButton | b | ||
| ) |
| void handleKeyPress | ( | SDLKey | k, |
| SDLMod | m | ||
| ) |
| void handleKeyReleases | ( | SDLKey | k, |
| SDLMod | m | ||
| ) |
| void handleMouseMove | ( | Input::MouseState | m | ) |
| void handleMousePress | ( | Uint8 | b, |
| Input::MouseState | m | ||
| ) |
| void handleMouseReleases | ( | Uint8 | b, |
| Input::MouseState | m | ||
| ) |
| void LevelWorldLoad | ( | ) |
| void LevelWorldUpdate | ( | ) |
| void printFailed | ( | string | s | ) |
| void printSuccess | ( | string | s | ) |
| void removeself | ( | Input::MouseState | m | ) |
Definition at line 81 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void removeself2 | ( | Uint8 | , |
| JoyButton | j | ||
| ) |
Definition at line 91 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void removeself3 | ( | Uint8 | , |
| JoyButton | j | ||
| ) |
Definition at line 101 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 111 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void removeself5 | ( | Uint8 | b, |
| Input::MouseState | s | ||
| ) |
Definition at line 121 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void removeself6 | ( | Uint8 | b, |
| Input::MouseState | s | ||
| ) |
Definition at line 131 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void removeself7 | ( | SDLKey | , |
| SDLMod | |||
| ) |
Definition at line 141 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void removeself8 | ( | SDLKey | , |
| SDLMod | |||
| ) |
Definition at line 151 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void TestLoad | ( | ) |
load background
load sprites
Checks for continuing input
checks for removal of functions
Be aware that this movement amount is per update loop. In order to account for a per-second basis complete calculations using Game::TICKS_PER_SECOND for update loops
Definition at line 163 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| void TestUpdate | ( | ) |
Definition at line 299 of file LevelFns.h.
Here is the call graph for this function:
Here is the caller graph for this function:| Audio beattone |
Definition at line 161 of file LevelFns.h.
| int failed =0 |
Definition at line 67 of file LevelFns.h.
| int success =0 |
Definition at line 66 of file LevelFns.h.
| bool testsDone = false |
set this to true to end tests.
Definition at line 69 of file LevelFns.h.