/// <summary>
		/// Raised, if the cartridge is complete.
		/// </summary>
		/// <param name="sender">Sender.</param>
		/// <param name="args">Arguments.</param>
		void OnCartridgeComplete (object sender, WherigoEventArgs args)
		{
			// TODO: Implementation
		}
Example #2
0
 /// <summary>
 /// Save the cartridge.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="args">Event arguments.</param>
 public void OnSaveCartridge(object sender, WherigoEventArgs args)
 {
     engine.Save(new FileStream(args.Cartridge.SaveFilename, FileMode.Create));
 }
Example #3
0
 /// <summary>
 /// Stop sound.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="args">Arguments.</param>
 public void OnStopSound(Object sender, WherigoEventArgs args)
 {
     mediaPlayer.Stop();
 }
Example #4
0
 void OnPlayAlert(object sender, WherigoEventArgs e)
 {
     Sounds.Alarm.PlayAlertSound();
     SystemSound.Vibrate.PlaySystemSound();
 }
Example #5
0
 /// <summary>
 /// Raises the play alert event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="args">Arguments.</param>
 public void OnPlayAlert(Object sender, WherigoEventArgs args)
 {
     // TODO: Implement
 }
		/// <summary>
		/// Stop sound.
		/// </summary>
		/// <param name="sender">Sender.</param>
		/// <param name="args">Arguments.</param>
		public void OnStopSound(Object sender, WherigoEventArgs args)
		{
			mediaPlayer.Stop ();
		}
Example #7
0
		/// <summary>
		/// Raises the play alert event.
		/// </summary>
		/// <param name="sender">Sender of event.</param>
		/// <param name="e">Wherigo event arguments.</param>
		public void OnPlayAlert(object sender, WherigoEventArgs e)
		{
			if (this.sound != null)
			{
				this.sound.PlayAlert();
			}

			if (this.vibration != null)
			{
				this.vibration.Vibrate();
			}
		}
		private void Core_StopSoundsRequested(object sender, WherigoEventArgs e)
		{
			StopAllSounds();
		}
Example #9
0
 private void Core_CartridgeCompleted(object sender, WherigoEventArgs e)
 {
     // Logs a history entry for cartridge completion.
     Model.History.AddCompletedGame(Model.CartridgeStore.GetCartridgeTag(e.Cartridge));
 }
 private void Core_CartridgeCompleted(object sender, WherigoEventArgs e)
 {
     // Logs a history entry for cartridge completion.
     Model.History.AddCompletedGame(Model.CartridgeStore.GetCartridgeTagOrDefault(e.Cartridge));
 }
		private void Core_PlayAlertRequested(object sender, WherigoEventArgs e)
		{
			Vibrate();
		}
		public void OnStopSound(Object sender, WherigoEventArgs args)
		{
			StopSound ();
		}
		void OnPlayAlert (object sender, WherigoEventArgs e)
		{
			Sounds.Alarm.PlayAlertSound ();
			SystemSound.Vibrate.PlaySystemSound ();
		}
Example #14
0
 public void OnStopSound(Object sender, WherigoEventArgs args)
 {
     StopSound();
 }
		/// <summary>
		/// Raises the play alert event.
		/// </summary>
		/// <param name="sender">Sender.</param>
		/// <param name="args">Arguments.</param>
		public void OnPlayAlert(Object sender, WherigoEventArgs args)
		{
			// TODO: Implement
		}
Example #16
0
 private void Core_PlayAlertRequested(object sender, WherigoEventArgs e)
 {
     Vibrate();
 }
		/// <summary>
		/// Save the cartridge.
		/// </summary>
		/// <param name="sender">Sender.</param>
		/// <param name="args">Event arguments.</param>
		public void OnSaveCartridge (object sender, WherigoEventArgs args)
		{
			engine.Save (new FileStream (args.Cartridge.SaveFilename, FileMode.Create));
		}
Example #18
0
 private void Core_StopSoundsRequested(object sender, WherigoEventArgs e)
 {
     StopAllSounds();
 }
Example #19
0
		/// <summary>
		/// Raises the cartridge complete event.
		/// </summary>
		/// <param name="sender">Sender of event.</param>
		/// <param name="args">Wherigo event arguments.</param>
		public void OnCartridgeComplete(object sender, WherigoEventArgs args)
		{
			// TODO: Implement
			// throw new NotImplementedException ();
		}
Example #20
0
 /// <summary>
 /// Raised, if the cartridge is complete.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="args">Arguments.</param>
 void OnCartridgeComplete(object sender, WherigoEventArgs args)
 {
     // TODO: Implementation
 }
Example #21
0
		/// <summary>
		/// Raises the stop sound event.
		/// </summary>
		/// <param name="sender">Sender of event.</param>
		/// <param name="args">Wherigo event arguments.</param>
		public void OnStopSound(object sender, WherigoEventArgs args)
		{
			if (this.sound != null)
			{
				this.sound.StopSound();
			}
		}
Example #22
0
 public void OnCartridgeComplete(object sender, WherigoEventArgs args)
 {
     // TODO: Implement
     // throw new NotImplementedException ();
 }