C# Class MrGravity.LevelChoice

Afficher le fichier Open project: DizWARE/Mr-Gravity

Méthodes publiques

Méthode Description
Export ( ) : System.Xml.Linq.XElement

Export an XElement of this level choice TODO: change additional XElements for new worldSelect

LevelChoice ( System.Xml.Linq.XElement levelInfo, IControlScheme controls, Microsoft.Xna.Framework.Content.ContentManager content, GraphicsDevice graphics ) : System

Reset ( bool rUnlock ) : void

Resets this level choice to unlocked/locked depending on rUnlock, and resets scores to 0.

SubmitScore ( int timerStar, int collectionStar, int deathStar ) : void

Submits new scores for the 3 scoring factors for this level, and if the new score is higher than previously recorded it makes note of this. Scores should be between values of 0 and 3.

Unlock ( ) : void

Method Details

Export() public méthode

Export an XElement of this level choice TODO: change additional XElements for new worldSelect
public Export ( ) : System.Xml.Linq.XElement
Résultat System.Xml.Linq.XElement

LevelChoice() public méthode

public LevelChoice ( System.Xml.Linq.XElement levelInfo, IControlScheme controls, Microsoft.Xna.Framework.Content.ContentManager content, GraphicsDevice graphics ) : System
levelInfo System.Xml.Linq.XElement
controls IControlScheme
content Microsoft.Xna.Framework.Content.ContentManager
graphics GraphicsDevice
Résultat System

Reset() public méthode

Resets this level choice to unlocked/locked depending on rUnlock, and resets scores to 0.
public Reset ( bool rUnlock ) : void
rUnlock bool True if level is locked, false otherwise
Résultat void

SubmitScore() public méthode

Submits new scores for the 3 scoring factors for this level, and if the new score is higher than previously recorded it makes note of this. Scores should be between values of 0 and 3.
public SubmitScore ( int timerStar, int collectionStar, int deathStar ) : void
timerStar int High Score for the Timer stars
collectionStar int High Score for the Collection stars
deathStar int High Score for the Death stars
Résultat void

Unlock() public méthode

public Unlock ( ) : void
Résultat void