C# Class CastleEscape.Battle

Takes care of battle screen and the battle procedures Authors: Allyson Sadwin Matt Munns
Inheritance: State
Show file Open project: Daminvar/CastleEscape

Public Methods

Method Description
Battle ( Microsoft.Xna.Framework.Game game, Microsoft.Xna.Framework.Graphics.Texture2D bgTex, Song battleSong, Player p, Enemy e, bool run ) : System
Draw ( SpriteBatch spriteBatch ) : void
Pause ( ) : void
Resume ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
calculateSpeed ( ) : void
handleInput ( GameTime gametime ) : void

Method Details

Battle() public method

public Battle ( Microsoft.Xna.Framework.Game game, Microsoft.Xna.Framework.Graphics.Texture2D bgTex, Song battleSong, Player p, Enemy e, bool run ) : System
game Microsoft.Xna.Framework.Game
bgTex Microsoft.Xna.Framework.Graphics.Texture2D
battleSong Song
p Player
e Enemy
run bool
return System

Draw() public method

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

Pause() public method

public Pause ( ) : void
return void

Resume() public method

public Resume ( ) : void
return void

Update() public method

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