C# Class CastleEscape.Overworld

The overworld state. Authors: Dennis Honeyman Matt Munns Allyson Sadwin
Inheritance: State
Show file Open project: Daminvar/CastleEscape

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
Overworld ( Microsoft.Xna.Framework.Game game, Player player, DrawableMap map ) : System
Pause ( ) : void
RandomEncounter ( int steps ) : bool
Resume ( ) : void
StartBattle ( int ped ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
handleInput ( GameTime gameTime ) : void

Handles the keyboard input by the player to move the character sprite onscreen. Also checks for collisions.

Method Details

Draw() public method

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

Overworld() public method

public Overworld ( Microsoft.Xna.Framework.Game game, Player player, DrawableMap map ) : System
game Microsoft.Xna.Framework.Game
player Player
map DrawableMap
return System

Pause() public method

public Pause ( ) : void
return void

RandomEncounter() public method

public RandomEncounter ( int steps ) : bool
steps int
return bool

Resume() public method

public Resume ( ) : void
return void

StartBattle() public method

public StartBattle ( int ped ) : void
ped int
return void

Update() public method

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