Exemple #1
0
 public BackgroundMusic(Settings settings, List<MSong> songList)
 {
     this.Settings = settings;
     this.songs = songList;
     this.index = 0;
     // currentSong = songs.ElementAt(index);
     init();
     Start();
 }
Exemple #2
0
 public Windowmanager(Settings settings, Cursor mouse,DebugFlag flag, Contents contents, GraphicsDevice graphicsDevice)
 {
     this.debugFlag = flag;
     this.stringBuilder = new StringBuilder();
     this.Settings = settings;
     this.Mouse = mouse;
     this.Contents = contents;
     this.windowBatch = new SpriteBatch(graphicsDevice);
 }
Exemple #3
0
 public SoundObjekt(Settings settings, Texture2D texture,SoundEffect effect, Vector2 position,Vector2 Zone, float radius)
 {
     this.Settings = settings;
     this.radius = radius;
     this.Zone = Zone;
     this.soundeffect = effect;
     this.position = position;
     this.texture = texture;
     this.soundEngine = soundeffect.CreateInstance();
     this.origin = new Vector2(texture.Width / 2, texture.Height / 2);
 }