C# Class _1942.LevelLoader

Datei anzeigen Open project: Hoobler/Projekt1 Class Usage Examples

Public Properties

Property Type Description
cameraPosition Vector2

Public Methods

Method Description
Draw ( SpriteBatch spritebatch ) : void
HighScoreScreen ( ) : bool
LevelHasEnded ( ) : bool
LevelLoader ( string TheLevelFile, Microsoft.Xna.Framework.Content.ContentManager content ) : System
LoadMap ( string levelName, Microsoft.Xna.Framework.Content.ContentManager content ) : void

The method used for loading a level, this method also calls the UnLoadLevel metod that clears all the lists prior to loading in the new level

MoveCamera ( float moved ) : void
TileSize ( ) : int
Update ( GameTime gameTime ) : void

Private Methods

Method Description
LoadLevel ( XmlReader reader, Microsoft.Xna.Framework.Content.ContentManager content ) : void
LoadLevelFile ( string LevelFile, Microsoft.Xna.Framework.Content.ContentManager content ) : void
LoadTexture ( XmlReader reader, Microsoft.Xna.Framework.Content.ContentManager content, char tempChar, bool hFlip, bool vFlip, bool animated, int frames ) : void
LoadTile ( string texturefile, Microsoft.Xna.Framework.Content.ContentManager content ) : void
StartingCameraPos ( ) : int
UnLoadLevel ( ) : void

Method Details

Draw() public method

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

HighScoreScreen() public method

public HighScoreScreen ( ) : bool
return bool

LevelHasEnded() public method

public LevelHasEnded ( ) : bool
return bool

LevelLoader() public method

public LevelLoader ( string TheLevelFile, Microsoft.Xna.Framework.Content.ContentManager content ) : System
TheLevelFile string
content Microsoft.Xna.Framework.Content.ContentManager
return System

LoadMap() public method

The method used for loading a level, this method also calls the UnLoadLevel metod that clears all the lists prior to loading in the new level
public LoadMap ( string levelName, Microsoft.Xna.Framework.Content.ContentManager content ) : void
levelName string The name of the level to be loaded
content Microsoft.Xna.Framework.Content.ContentManager
return void

MoveCamera() public method

public MoveCamera ( float moved ) : void
moved float
return void

TileSize() public method

public TileSize ( ) : int
return int

Update() public method

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

Property Details

cameraPosition public_oe property

public Vector2 cameraPosition
return Vector2