C# Class MrGravity.LevelInfo

Information for the level that can be accessed easily
Exibir arquivo Open project: DizWARE/Mr-Gravity

Public Methods

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

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

GetGoal() public method

Gets the goal.
public GetGoal ( StarTypes starType ) : int
starType StarTypes Type of the star.
return int

GetStar() public method

Gets the star.
public GetStar ( StarTypes starType ) : int
starType StarTypes Type of the star.
return int

LevelInfo() public method

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

Reset() public method

Resets this level
public Reset ( ) : void
return void

SetStar() public method

public SetStar ( StarTypes starType, int value ) : void
starType StarTypes
value int
return void

StarCount() public method

Gets the star count
public StarCount ( ) : int
return int

TenthStar() public method

Gets if there is a tenth star or not
public TenthStar ( ) : bool
return bool

Unlock() public method

Unlocks this level
public Unlock ( ) : void
return void