C# Class GrandLarceny.GameState

Inheritance: GrandLarceny.States
Mostrar archivo Open project: melburn/GLhf

Public Methods

Method 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

Method Description
finishLevel ( ) : void
getEvents ( ) : LinkedList

Method Details

GameState() public method

public GameState ( string a_levelToLoad ) : System
a_levelToLoad string
return System

GameState() public method

public GameState ( string a_levelToLoad, bool a_checkpoint ) : System
a_levelToLoad string
a_checkpoint bool
return System

addGuiObject() public method

public addGuiObject ( GrandLarceny.GuiObject a_go ) : void
a_go GrandLarceny.GuiObject
return void

addObject() public method

public addObject ( GrandLarceny.GameObject a_object ) : void
a_object GrandLarceny.GameObject
return void

addObject() public method

public addObject ( GrandLarceny.GameObject a_object, int a_layer ) : void
a_object GrandLarceny.GameObject
a_layer int
return void

changeLayer() public method

public changeLayer ( int a_newLayer ) : void
a_newLayer int
return void

checkBigBoxCollision() public static method

public static checkBigBoxCollision ( Rectangle a_first, Rectangle a_second ) : bool
a_first Microsoft.Xna.Framework.Rectangle
a_second Microsoft.Xna.Framework.Rectangle
return bool

clearAggro() public method

public clearAggro ( ) : void
return void

draw() public method

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

getActionKey() public static method

public static getActionKey ( ) : Keys
return Keys

getBackground() public method

public getBackground ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

getCurrentLevelName() public method

public getCurrentLevelName ( ) : string
return string

getCurrentList() public method

public getCurrentList ( ) : LinkedList
return LinkedList

getDownKey() public static method

public static getDownKey ( ) : Keys
return Keys

getJumpKey() public static method

public static getJumpKey ( ) : Keys
return Keys

getLeftKey() public static method

public static getLeftKey ( ) : Keys
return Keys

getLevelName() public method

public getLevelName ( ) : string
return string

getObjectList() public method

public getObjectList ( ) : LinkedList[]
return LinkedList[]

getPlayer() public method

public getPlayer ( ) : Player
return Player

getRightKey() public static method

public static getRightKey ( ) : Keys
return Keys

getRollKey() public static method

public static getRollKey ( ) : Keys
return Keys

getSprintKey() public static method

public static getSprintKey ( ) : Keys
return Keys

getUpKey() public static method

public static getUpKey ( ) : Keys
return Keys

load() public method

public load ( ) : void
return void

moveObjectToLayer() public method

public moveObjectToLayer ( GrandLarceny.GameObject a_go, int a_layer ) : void
a_go GrandLarceny.GameObject
a_layer int
return void

numberOfGoals() public method

public numberOfGoals ( ) : int
return int

objectIsOnLayer() public method

public objectIsOnLayer ( GrandLarceny.GameObject a_obj, int a_layer ) : bool
a_obj GrandLarceny.GameObject
a_layer int
return bool

removeObject() public method

public removeObject ( GrandLarceny.GameObject a_object ) : void
a_object GrandLarceny.GameObject
return void

removeObject() public method

public removeObject ( GrandLarceny.GameObject a_object, int a_layer ) : void
a_object GrandLarceny.GameObject
a_layer int
return void

setPlayer() public method

public setPlayer ( Player a_player ) : void
a_player Player
return void

update() public method

public update ( GameTime a_gameTime ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
return void