C# Class SmashBros.Controllers.GamePlayController

Start and controlls the main gameplay
Inheritance: Controller
显示文件 Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Methods

Method Description
Deactivate ( ) : void
GamePlayController ( ScreenManager screen, Map selectedMap ) : System
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
OnNext ( GameStateManager value ) : void
Unload ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
GetGameStats ( ) : List
OnHitAnimationDone ( ImageController target, ImageModel imagePosition ) : void
OnPlayerDeath ( CharacterController characterController, bool behindScreen ) : void
OnPlayerHit ( Vector2 pos, int damageDone, int newDamagepoints, int puncher, int reciever, string sound ) : void
OnStartPress ( int playerIndex ) : void
countDownNext ( ImageModel imgModel ) : void
createCharacters ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
getTimeLeft ( ) : string

Method Details

Deactivate() public method

public Deactivate ( ) : void
return void

GamePlayController() public method

public GamePlayController ( ScreenManager screen, Map selectedMap ) : System
screen SmashBros.MySystem.ScreenManager
selectedMap SmashBros.Models.Map
return System

Load() public method

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

OnNext() public method

public OnNext ( GameStateManager value ) : void
value GameStateManager
return void

Unload() public method

public Unload ( ) : void
return void

Update() public method

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