/// <summary> /// Constructor fills in the contents for a specific sign. /// </summary> public SignScreen(Sign sign) : base() { TransitionOnTime = TimeSpan.FromSeconds(1.0f); IsPopup = true; fact = sign.Factoid; }
/// <summary> /// Event handler for when a checkpoint is reached. The game is saved everytime /// a checkpoint is reached. /// </summary> private void CheckpointReached(object sender, EventArgs e, Sign sign) { SaveManager.SetStatistics(Session.StatisticsManager); Session.LastSavedStats = new StatisticsManager(Session.StatisticsManager); SaveManager.SaveData(); freeze = true; ScreenManager.AddScreen(new SignScreen(sign)); }
/// <summary> /// Method for raising the checkpoint event. /// </summary> public void CheckpointReached(Sign sign) { if (Checkpoint != null) Checkpoint(this, EventArgs.Empty, sign); }
/// <summary> /// Returns a copy of the current object. /// </summary> public override Object Clone() { Sign clone = new Sign(objectType, Position, Factoid, objectID); clone.sprite = sprite; return clone; }