Exemple #1
0
 protected Music(string contentName, SoundDevice device)
     : base(contentName)
 {
     this.device = device;
     Loop = false;
     cachedVolume = Settings.Current.MusicVolume;
 }
Exemple #2
0
		public Game(Window window, SoundDevice soundDevice)
		{
			new Player("Player");
			new TowerTargetFinder();
			window.BackgroundColor = Color.Black;
			InitializeWindowAndSoundDevice(window, soundDevice);
			new Command(Command.Exit, ExitGame);
			Add(new InGameCommands());
			new MenuController();
			ShowMainMenu();
		}
Exemple #3
0
 protected Music(string filename, SoundDevice device)
     : base(filename)
 {
     this.device = device;
 }
 private void SetupSoundDeviceMock()
 {
     var mockSoundDevice = testResolver.RegisterMock<SoundDevice>();
     soundDevice = mockSoundDevice.Object;
 }
Exemple #5
0
		protected Video(string contentName, SoundDevice device)
			: base(contentName)
		{
			this.device = device;
		}
Exemple #6
0
		private static void InitializeWindowAndSoundDevice(Window window, SoundDevice soundDevice)
		{
			AppWindow = window;
			SoundDevice = soundDevice;
		}