The Game Engine  1
LevelFns.h File Reference

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
 

Detailed Description

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.

Function Documentation

void handleJoyButtonDown ( Uint8  jp,
JoyButton  b 
)

Definition at line 49 of file LevelFns.h.

+ Here is the caller graph for this function:

void handleJoyButtonUp ( Uint8  jp,
JoyButton  b 
)

Definition at line 54 of file LevelFns.h.

+ Here is the caller graph for this function:

void handleJoyMove ( Uint8  jp,
JoyStick  s,
Point2D  pos 
)

Definition at line 59 of file LevelFns.h.

+ Here is the caller graph for this function:

void handleKeyPress ( SDLKey  k,
SDLMod  m 
)

Definition at line 29 of file LevelFns.h.

+ Here is the caller graph for this function:

void handleKeyReleases ( SDLKey  k,
SDLMod  m 
)

Definition at line 24 of file LevelFns.h.

+ Here is the caller graph for this function:

void handleMouseMove ( Input::MouseState  m)

Definition at line 44 of file LevelFns.h.

+ Here is the caller graph for this function:

void handleMousePress ( Uint8  b,
Input::MouseState  m 
)

Definition at line 39 of file LevelFns.h.

+ Here is the caller graph for this function:

void handleMouseReleases ( Uint8  b,
Input::MouseState  m 
)

Definition at line 34 of file LevelFns.h.

+ Here is the caller graph for this function:

void LevelWorldLoad ( )

Definition at line 14 of file LevelFns.h.

+ Here is the caller graph for this function:

void LevelWorldUpdate ( )

Definition at line 17 of file LevelFns.h.

+ Here is the caller graph for this function:

void printFailed ( string  s)

Definition at line 74 of file LevelFns.h.

+ Here is the caller graph for this function:

void printSuccess ( string  s)

Definition at line 70 of file LevelFns.h.

+ Here is the caller graph for this function:

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:

void removeself4 ( Uint8  ,
JoyStick  ,
Point2D   
)

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 ( )
Todo:
Players need to be added into game!!!

Definition at line 299 of file LevelFns.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

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.