C# 클래스 MrGravity.LevelInfo

Information for the level that can be accessed easily
파일 보기 프로젝트 열기: DizWARE/Mr-Gravity

공개 메소드들

메소드 설명
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

메소드 상세

Export() 공개 메소드

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

GetGoal() 공개 메소드

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

GetStar() 공개 메소드

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

LevelInfo() 공개 메소드

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
리턴 System

Reset() 공개 메소드

Resets this level
public Reset ( ) : void
리턴 void

SetStar() 공개 메소드

public SetStar ( StarTypes starType, int value ) : void
starType StarTypes
value int
리턴 void

StarCount() 공개 메소드

Gets the star count
public StarCount ( ) : int
리턴 int

TenthStar() 공개 메소드

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

Unlock() 공개 메소드

Unlocks this level
public Unlock ( ) : void
리턴 void