Example #1
0
        /// <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;
        }
Example #2
0
 /// <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));
 }
Example #3
0
 /// <summary>
 /// Method for raising the checkpoint event.
 /// </summary>
 public void CheckpointReached(Sign sign)
 {
     if (Checkpoint != null)
         Checkpoint(this, EventArgs.Empty, sign);
 }
Example #4
0
 /// <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;
 }