示例#1
0
 public void levelCleared(int score, int lives)
 {
     this.state = new Cleared(this, ref graphics, ref spriteBatch, ref device);
     this.state.data["score"] = score.ToString();
     this.state.data["lives"] = lives.ToString();
     this.state.data["total"] = (score + lives * 1000).ToString();
 }
示例#2
0
 public Button(State parent, String text, Vector2 position, int xSize, int ySize, Color textColor, Color backgroundColor)
 {
     this.text = text;
     this.parent = parent;
     this.position = position;
     this.xSize = xSize;
     this.ySize = ySize;
     this.textColor = textColor;
     this.backgroundColor = backgroundColor;
 }
示例#3
0
 public void setPause()
 {
     this.previousState = this.state;
     this.state = new Pause(this, ref graphics, ref spriteBatch, ref device);
 }
示例#4
0
 public void setMenu()
 {
     this.state = new Menu(this, ref graphics, ref spriteBatch, ref device);
 }
示例#5
0
 public void setLevelSelection()
 {
     this.state = new Selection(this, ref graphics, ref spriteBatch, ref device);
 }
示例#6
0
 public void restoreGaming()
 {
     this.state = previousState;
 }
示例#7
0
 public void resetGaming()
 {
     this.state = new   Gaming(previousState.name, this, ref graphics, ref spriteBatch, ref device);
 }
示例#8
0
 public void exitGaming_Loss()
 {
     this.state = new Loss(this, ref graphics, ref spriteBatch, ref device);
 }
示例#9
0
 public void createGaming(String level)
 {
     this.state = new Gaming(level, this, ref graphics, ref spriteBatch, ref device);
 }