Exemplo n.º 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();
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public void setPause()
 {
     this.previousState = this.state;
     this.state = new Pause(this, ref graphics, ref spriteBatch, ref device);
 }
Exemplo n.º 4
0
 public void setMenu()
 {
     this.state = new Menu(this, ref graphics, ref spriteBatch, ref device);
 }
Exemplo n.º 5
0
 public void setLevelSelection()
 {
     this.state = new Selection(this, ref graphics, ref spriteBatch, ref device);
 }
Exemplo n.º 6
0
 public void restoreGaming()
 {
     this.state = previousState;
 }
Exemplo n.º 7
0
 public void resetGaming()
 {
     this.state = new   Gaming(previousState.name, this, ref graphics, ref spriteBatch, ref device);
 }
Exemplo n.º 8
0
 public void exitGaming_Loss()
 {
     this.state = new Loss(this, ref graphics, ref spriteBatch, ref device);
 }
Exemplo n.º 9
0
 public void createGaming(String level)
 {
     this.state = new Gaming(level, this, ref graphics, ref spriteBatch, ref device);
 }