C# Class Drought.GameStates.LevelState

Inheritance: Drought.State.GameState
Show file Open project: kiniry-teaching/UCD

Public Properties

Property Type Description
camera Drought.World.Camera

Protected Properties

Property Type Description
rain Drought.Graphics.PlaneParticleEmitter
sun Drought.World.Sun

Public Methods

Method Description
LevelState ( IStateManager manager, DroughtGame game, Level aLevel ) : System
background ( ) : void
foreground ( ) : void
loadContent ( ) : void
render ( GameTime gameTime, GraphicsDevice graphics, SpriteBatch spriteBatch ) : void
selectAllUnits ( ) : void
update ( GameTime gameTime ) : void

Private Methods

Method Description
initializeEntities ( ) : void
randomFirePosition ( ) : Vector3
updateInput ( ) : void
updateParticles ( GameTime gameTime ) : void
updateUnitInput ( ) : void
updateUnits ( ) : void

Method Details

LevelState() public method

public LevelState ( IStateManager manager, DroughtGame game, Level aLevel ) : System
manager IStateManager
game DroughtGame
aLevel Level
return System

background() public method

public background ( ) : void
return void

foreground() public method

public foreground ( ) : void
return void

loadContent() public method

public loadContent ( ) : void
return void

render() public method

public render ( GameTime gameTime, GraphicsDevice graphics, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
graphics GraphicsDevice
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

selectAllUnits() public method

public selectAllUnits ( ) : void
return void

update() public method

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

Property Details

camera public property

public Camera,Drought.World camera
return Drought.World.Camera

rain protected property

protected PlaneParticleEmitter,Drought.Graphics rain
return Drought.Graphics.PlaneParticleEmitter

sun protected property

protected Sun,Drought.World sun
return Drought.World.Sun