C# Class CastleEscape.Overworld

The overworld state. Authors: Dennis Honeyman Matt Munns Allyson Sadwin
Inheritance: State
Afficher le fichier Open project: Daminvar/CastleEscape

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Overworld() public méthode

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

Pause() public méthode

public Pause ( ) : void
Résultat void

RandomEncounter() public méthode

public RandomEncounter ( int steps ) : bool
steps int
Résultat bool

Resume() public méthode

public Resume ( ) : void
Résultat void

StartBattle() public méthode

public StartBattle ( int ped ) : void
ped int
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void