Ejemplo n.º 1
0
 public AudioTask(IGameExit gameexit, string id, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.filename = id;
     this.audio = audio;
 }
Ejemplo n.º 2
0
 public AudioTask(GameExit gameexit, AudioDataCs sample, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.sample = sample;
     this.audio = audio;
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 public AudioTask(GameExit gameexit, AudioDataCs sample, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.sample   = sample;
     this.audio    = audio;
 }
Ejemplo n.º 5
0
 public AudioTask(IGameExit gameexit, string id, AudioOpenAl audio)
 {
     this.gameexit = gameexit;
     this.filename = id;
     this.audio = audio;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 7
0
 void StartAudio()
 {
     if (audio == null)
     {
         audio = new AudioOpenAl();
         audio.d_GameExit = gameexit;
     }
 }