C# Class GrandLarceny.GameState

Inheritance: GrandLarceny.States
Afficher le fichier Open project: melburn/GLhf

Méthodes publiques

Méthode Description
GameState ( string a_levelToLoad ) : System
GameState ( string a_levelToLoad, bool a_checkpoint ) : System
addGuiObject ( GrandLarceny.GuiObject a_go ) : void
addObject ( GrandLarceny.GameObject a_object ) : void
addObject ( GrandLarceny.GameObject a_object, int a_layer ) : void
changeLayer ( int a_newLayer ) : void
checkBigBoxCollision ( Rectangle a_first, Rectangle a_second ) : bool
clearAggro ( ) : void
draw ( GameTime a_gameTime, SpriteBatch a_spriteBatch ) : void
getActionKey ( ) : Keys
getBackground ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
getCurrentLevelName ( ) : string
getCurrentList ( ) : LinkedList
getDownKey ( ) : Keys
getJumpKey ( ) : Keys
getLeftKey ( ) : Keys
getLevelName ( ) : string
getObjectList ( ) : LinkedList[]
getPlayer ( ) : Player
getRightKey ( ) : Keys
getRollKey ( ) : Keys
getSprintKey ( ) : Keys
getUpKey ( ) : Keys
load ( ) : void
moveObjectToLayer ( GrandLarceny.GameObject a_go, int a_layer ) : void
numberOfGoals ( ) : int
objectIsOnLayer ( GrandLarceny.GameObject a_obj, int a_layer ) : bool
removeObject ( GrandLarceny.GameObject a_object ) : void
removeObject ( GrandLarceny.GameObject a_object, int a_layer ) : void
setPlayer ( Player a_player ) : void
update ( GameTime a_gameTime ) : void

Private Methods

Méthode Description
finishLevel ( ) : void
getEvents ( ) : LinkedList

Method Details

GameState() public méthode

public GameState ( string a_levelToLoad ) : System
a_levelToLoad string
Résultat System

GameState() public méthode

public GameState ( string a_levelToLoad, bool a_checkpoint ) : System
a_levelToLoad string
a_checkpoint bool
Résultat System

addGuiObject() public méthode

public addGuiObject ( GrandLarceny.GuiObject a_go ) : void
a_go GrandLarceny.GuiObject
Résultat void

addObject() public méthode

public addObject ( GrandLarceny.GameObject a_object ) : void
a_object GrandLarceny.GameObject
Résultat void

addObject() public méthode

public addObject ( GrandLarceny.GameObject a_object, int a_layer ) : void
a_object GrandLarceny.GameObject
a_layer int
Résultat void

changeLayer() public méthode

public changeLayer ( int a_newLayer ) : void
a_newLayer int
Résultat void

checkBigBoxCollision() public static méthode

public static checkBigBoxCollision ( Rectangle a_first, Rectangle a_second ) : bool
a_first Microsoft.Xna.Framework.Rectangle
a_second Microsoft.Xna.Framework.Rectangle
Résultat bool

clearAggro() public méthode

public clearAggro ( ) : void
Résultat void

draw() public méthode

public draw ( GameTime a_gameTime, SpriteBatch a_spriteBatch ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
a_spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

getActionKey() public static méthode

public static getActionKey ( ) : Keys
Résultat Keys

getBackground() public méthode

public getBackground ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

getCurrentLevelName() public méthode

public getCurrentLevelName ( ) : string
Résultat string

getCurrentList() public méthode

public getCurrentList ( ) : LinkedList
Résultat LinkedList

getDownKey() public static méthode

public static getDownKey ( ) : Keys
Résultat Keys

getJumpKey() public static méthode

public static getJumpKey ( ) : Keys
Résultat Keys

getLeftKey() public static méthode

public static getLeftKey ( ) : Keys
Résultat Keys

getLevelName() public méthode

public getLevelName ( ) : string
Résultat string

getObjectList() public méthode

public getObjectList ( ) : LinkedList[]
Résultat LinkedList[]

getPlayer() public méthode

public getPlayer ( ) : Player
Résultat Player

getRightKey() public static méthode

public static getRightKey ( ) : Keys
Résultat Keys

getRollKey() public static méthode

public static getRollKey ( ) : Keys
Résultat Keys

getSprintKey() public static méthode

public static getSprintKey ( ) : Keys
Résultat Keys

getUpKey() public static méthode

public static getUpKey ( ) : Keys
Résultat Keys

load() public méthode

public load ( ) : void
Résultat void

moveObjectToLayer() public méthode

public moveObjectToLayer ( GrandLarceny.GameObject a_go, int a_layer ) : void
a_go GrandLarceny.GameObject
a_layer int
Résultat void

numberOfGoals() public méthode

public numberOfGoals ( ) : int
Résultat int

objectIsOnLayer() public méthode

public objectIsOnLayer ( GrandLarceny.GameObject a_obj, int a_layer ) : bool
a_obj GrandLarceny.GameObject
a_layer int
Résultat bool

removeObject() public méthode

public removeObject ( GrandLarceny.GameObject a_object ) : void
a_object GrandLarceny.GameObject
Résultat void

removeObject() public méthode

public removeObject ( GrandLarceny.GameObject a_object, int a_layer ) : void
a_object GrandLarceny.GameObject
a_layer int
Résultat void

setPlayer() public méthode

public setPlayer ( Player a_player ) : void
a_player Player
Résultat void

update() public méthode

public update ( GameTime a_gameTime ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
Résultat void