C# Class MrGravity.LevelInfo

Information for the level that can be accessed easily
Afficher le fichier Open project: DizWARE/Mr-Gravity

Méthodes publiques

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

Exports this level to a level info

GetGoal ( StarTypes starType ) : int

Gets the goal.

GetStar ( StarTypes starType ) : int

Gets the star.

LevelInfo ( System.Xml.Linq.XElement levelInfo, Microsoft.Xna.Framework.Content.ContentManager content, IControlScheme controls, GraphicsDeviceManager graphics ) : System
Reset ( ) : void

Resets this level

SetStar ( StarTypes starType, int value ) : void

StarCount ( ) : int

Gets the star count

TenthStar ( ) : bool

Gets if there is a tenth star or not

Unlock ( ) : void

Unlocks this level

Method Details

Export() public méthode

Exports this level to a level info
public Export ( ) : System.Xml.Linq.XElement
Résultat System.Xml.Linq.XElement

GetGoal() public méthode

Gets the goal.
public GetGoal ( StarTypes starType ) : int
starType StarTypes Type of the star.
Résultat int

GetStar() public méthode

Gets the star.
public GetStar ( StarTypes starType ) : int
starType StarTypes Type of the star.
Résultat int

LevelInfo() public méthode

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

Reset() public méthode

Resets this level
public Reset ( ) : void
Résultat void

SetStar() public méthode

public SetStar ( StarTypes starType, int value ) : void
starType StarTypes
value int
Résultat void

StarCount() public méthode

Gets the star count
public StarCount ( ) : int
Résultat int

TenthStar() public méthode

Gets if there is a tenth star or not
public TenthStar ( ) : bool
Résultat bool

Unlock() public méthode

Unlocks this level
public Unlock ( ) : void
Résultat void