C# 클래스 MrGravity.LevelChoice

파일 보기 프로젝트 열기: DizWARE/Mr-Gravity

공개 메소드들

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

메소드 상세

Export() 공개 메소드

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

LevelChoice() 공개 메소드

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

Reset() 공개 메소드

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

SubmitScore() 공개 메소드

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

Unlock() 공개 메소드

public Unlock ( ) : void
리턴 void