C# Class MrGravity.LevelChoice

Datei anzeigen Open project: DizWARE/Mr-Gravity

Public Methods

Method 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 method

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

LevelChoice() public method

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
return System

Reset() public method

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
return void

SubmitScore() public method

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
return void

Unlock() public method

public Unlock ( ) : void
return void