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