Example #1
0
 public AudioTask(IGameExit gameexit, string id, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.filename = id;
     this.audio = audio;
 }
Example #2
0
 public AudioTask(GameExit gameexit, AudioDataCs sample, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.sample = sample;
     this.audio = audio;
 }
        public void Start()
        {
            w = new ManicDiggerGameWindow();
            audio = new AudioOpenAl();
            w.audio = audio;
            MakeGame(true);

            // Defaults for connectioninfo
            if (connectinfo == null)
            {
                connectinfo = new ServerConnectInfo();
                connectinfo.url = "127.0.0.1";
                connectinfo.port = 25570;
                connectinfo.username = "******";
            }

            // Temporary plugin of ServerConnectInfo.  Need to come back and clean this up.
            if (connectinfo.url != null)
            {
                w.GameUrl = connectinfo.url + ":" + connectinfo.port;
            }
            if (connectinfo.username != null)
            {
                w.username = connectinfo.username;
            }

            this.exit = w;
            w.Run();
        }
Example #4
0
 public AudioTask(GameExit gameexit, AudioDataCs sample, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.sample   = sample;
     this.audio    = audio;
 }
Example #5
0
 public AudioTask(IGameExit gameexit, string id, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.filename = id;
     this.audio = audio;
 }
Example #6
0
 public void Start()
 {
     w = new ManicDiggerGameWindow();
     audio = new AudioOpenAl();
     w.audio = audio;
     MakeGame(true);
     w.GameUrl = GameUrl;
     if (User != null)
     {
         w.username = User;
     }
     if (Password != null)
     {
         w.mppassword = Password;
     }
     w.Run();
 }
Example #7
0
 void StartAudio()
 {
     if (audio == null)
     {
         audio = new AudioOpenAl();
         audio.d_GameExit = gameexit;
     }
 }