C# Class Blink.StateGame

Inheritance: GameState
Datei anzeigen Open project: dah6ce/Blink

Public Properties

Property Type Description
Hit_Player_Sound Microsoft.Xna.Framework.Audio.SoundEffect
Hit_Wall_Sound Microsoft.Xna.Framework.Audio.SoundEffect
Stab_Sound Microsoft.Xna.Framework.Audio.SoundEffect
Throw_Sound Microsoft.Xna.Framework.Audio.SoundEffect
Win GameState
gameTime Microsoft.Xna.Framework.GameTime
levelSelect GameState
spearSprite Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
GetTransition ( ) : GameState
Initialize ( ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
StateGame ( Vector2 screenSize ) : System
UnloadContent ( ) : void
Update ( GameTime gameTime ) : void
detectEndOfGame ( ) : void
detectWinner ( ) : void
informGame ( bool playersConnected, string playerChars, int charNums ) : void
setMaps ( mapSet map ) : void
winScore ( ) : int

Private Methods

Method Description
declareVictor ( PlayerClass victor ) : void
playerKilled ( Object sender, DeathEventArgs args ) : void
resetMap ( ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetTransition() public method

public GetTransition ( ) : GameState
return GameState

Initialize() public method

public Initialize ( ) : void
return void

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
return void

StateGame() public method

public StateGame ( Vector2 screenSize ) : System
screenSize Vector2
return System

UnloadContent() public method

public UnloadContent ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

detectEndOfGame() public method

public detectEndOfGame ( ) : void
return void

detectWinner() public method

public detectWinner ( ) : void
return void

informGame() public method

public informGame ( bool playersConnected, string playerChars, int charNums ) : void
playersConnected bool
playerChars string
charNums int
return void

setMaps() public method

public setMaps ( mapSet map ) : void
map Blink.Classes.mapSet
return void

winScore() public method

public winScore ( ) : int
return int

Property Details

Hit_Player_Sound public_oe static_oe property

public static SoundEffect,Microsoft.Xna.Framework.Audio Hit_Player_Sound
return Microsoft.Xna.Framework.Audio.SoundEffect

Hit_Wall_Sound public_oe static_oe property

public static SoundEffect,Microsoft.Xna.Framework.Audio Hit_Wall_Sound
return Microsoft.Xna.Framework.Audio.SoundEffect

Stab_Sound public_oe static_oe property

public static SoundEffect,Microsoft.Xna.Framework.Audio Stab_Sound
return Microsoft.Xna.Framework.Audio.SoundEffect

Throw_Sound public_oe static_oe property

public static SoundEffect,Microsoft.Xna.Framework.Audio Throw_Sound
return Microsoft.Xna.Framework.Audio.SoundEffect

Win public_oe property

public GameState Win
return GameState

gameTime public_oe static_oe property

public static GameTime,Microsoft.Xna.Framework gameTime
return Microsoft.Xna.Framework.GameTime

levelSelect public_oe property

public GameState levelSelect
return GameState

spearSprite public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics spearSprite
return Microsoft.Xna.Framework.Graphics.Texture2D