예제 #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;
        }
예제 #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));
 }
예제 #3
0
 /// <summary>
 /// Method for raising the checkpoint event.
 /// </summary>
 public void CheckpointReached(Sign sign)
 {
     if (Checkpoint != null)
         Checkpoint(this, EventArgs.Empty, sign);
 }
예제 #4
0
파일: Sign.cs 프로젝트: frank44/pewpew
 /// <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;
 }