C# Class SmashBros.Controllers.MapController

Inheritance: Controller
显示文件 Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Properties

Property Type Description
Model SmashBros.Models.Map

Public Methods

Method Description
Deactivate ( ) : void
DisposeBoxes ( ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
MapController ( ScreenManager screen, Map currentMap ) : System
OnNext ( MySystem value ) : void
Unload ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
CreateEdge ( float x, float y, float width, float height, Category cat = Category.Cat8 ) : Body
SetUpMap ( ) : void

Sets up the body boxes on the map according to the currentMap

Method Details

Deactivate() public method

public Deactivate ( ) : void
return void

DisposeBoxes() public method

public DisposeBoxes ( ) : void
return void

Load() public method

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

MapController() public method

public MapController ( ScreenManager screen, Map currentMap ) : System
screen SmashBros.MySystem.ScreenManager
currentMap SmashBros.Models.Map
return System

OnNext() public method

public OnNext ( MySystem value ) : void
value MySystem
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

Property Details

Model public_oe property

public Map,SmashBros.Models Model
return SmashBros.Models.Map