C# Class Lecture7Examples.WorldMapManager

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent, IDrawSprites
ファイルを表示 Open project: Westerdals/PG2200LectureCode2013 Class Usage Examples

Protected Properties

Property Type Description
_toDraw List

Public Methods

Method Description
AddDrawable ( DrawData drawable ) : void
Draw ( GameTime gameTime ) : void
Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

RemoveDrawable ( DrawData toRemove ) : void
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

WorldMapManager ( Microsoft.Xna.Framework.Game game ) : System

Protected Methods

Method Description
LoadContent ( ) : void
drawElement ( DrawData drawable ) : void

Method Details

AddDrawable() public method

public AddDrawable ( DrawData drawable ) : void
drawable LectureExamples5.DrawData
return void

Draw() public method

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

Initialize() public method

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

RemoveDrawable() public method

public RemoveDrawable ( DrawData toRemove ) : void
toRemove LectureExamples5.DrawData
return void

Update() public method

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void

WorldMapManager() public method

public WorldMapManager ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

drawElement() protected method

protected drawElement ( DrawData drawable ) : void
drawable LectureExamples5.DrawData
return void

Property Details

_toDraw protected_oe property

protected List _toDraw
return List