Ejemplo n.º 1
0
 public void Update(GameTime gameTime, GameResults gameResults)
 {
     this.gameResults = gameResults;
     healthBar.Value  = (float)(SurvivorHealth / 100.0f);
     staminaBar.Value = (float)(SurvivorStamina / 100.0f);
     messageQueue.Update(gameTime);
 }
Ejemplo n.º 2
0
 private void ResetToGameOver(GameResults gameResults, GameOptions gameOptions)
 {
     GameState = GameState.Starting;
     GameOverScreen.GameResults = gameResults;
     GameOverScreen.GameOptions = gameOptions;
     gameStartingScreen         = GameStartingScreen.GameOverScreen;
 }
Ejemplo n.º 3
0
 public HUD(Game game, GameOptions gameOptions)
 {
     this.Game        = game;
     this.gameOptions = gameOptions;
     gameResults      = new GameResults();
     healthBar        = new HUDBar(HEALTH_BAR_BACKGROUND_COLOR, HEALTH_BAR_BAR_COLOR, HEALTH_BAR_FRAME, "Health:");
     staminaBar       = new HUDBar(STAMINA_BAR_BACKGROUND_COLOR, STAMINA_BAR_BAR_COLOR, STAMINA_BAR_FRAME, "Stamina:");
     messageQueue     = new HUDTextTimedQueue(MESSAGE_QUEUE_BASEPOINT);
 }
 private void ResetToGameOver(GameResults gameResults, GameOptions gameOptions)
 {
     GameState = GameState.Starting;
     GameOverScreen.GameResults = gameResults;
     GameOverScreen.GameOptions = gameOptions;
     gameStartingScreen = GameStartingScreen.GameOverScreen;
 }
Ejemplo n.º 5
0
 public HUD(Game game, GameOptions gameOptions)
 {
     this.Game = game;
     this.gameOptions = gameOptions;
     gameResults = new GameResults();
     healthBar = new HUDBar(HEALTH_BAR_BACKGROUND_COLOR, HEALTH_BAR_BAR_COLOR, HEALTH_BAR_FRAME, "Health:");
     staminaBar = new HUDBar(STAMINA_BAR_BACKGROUND_COLOR, STAMINA_BAR_BAR_COLOR, STAMINA_BAR_FRAME, "Stamina:");
     messageQueue = new HUDTextTimedQueue(MESSAGE_QUEUE_BASEPOINT);
 }
Ejemplo n.º 6
0
 public void Update(GameTime gameTime, GameResults gameResults)
 {
     this.gameResults = gameResults;
     healthBar.Value = (float)(SurvivorHealth / 100.0f);
     staminaBar.Value = (float)(SurvivorStamina / 100.0f);
     messageQueue.Update(gameTime);
 }