C# Class _1942.LevelLoader

Afficher le fichier Open project: Hoobler/Projekt1 Class Usage Examples

Méthodes publiques

Свойство Type Description
cameraPosition Vector2

Méthodes publiques

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

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

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

HighScoreScreen() public méthode

public HighScoreScreen ( ) : bool
Résultat bool

LevelHasEnded() public méthode

public LevelHasEnded ( ) : bool
Résultat bool

LevelLoader() public méthode

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

LoadMap() public méthode

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

MoveCamera() public méthode

public MoveCamera ( float moved ) : void
moved float
Résultat void

TileSize() public méthode

public TileSize ( ) : int
Résultat int

Update() public méthode

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

Property Details

cameraPosition public_oe property

public Vector2 cameraPosition
Résultat Vector2