C# Class CastleEscape.Battle

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

Méthodes publiques

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

Méthode Description
calculateSpeed ( ) : void
handleInput ( GameTime gametime ) : void

Method Details

Battle() public méthode

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
Résultat System

Draw() public méthode

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

Pause() public méthode

public Pause ( ) : void
Résultat void

Resume() public méthode

public Resume ( ) : void
Résultat void

Update() public méthode

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