public override void process(FortNitta game)
 {
     int x = this._x_coordinate;
       int y = this._y_coordinate;
       int id = this._player_id - 1;
       game.fireCannons(id, x, y);
 }
 public override void process(FortNitta game)
 {
     if (_result == 1)
       {
     game.setMenu("roomMenu");
       }
 }
 public override void process(FortNitta game)
 {
     int x = this._x_coordinate;
       int y = this._y_coordinate;
       int id = this._player_id - 1;
       game.selectCastle(id, x, y);
 }
 public override void process(FortNitta game)
 {
     game.setMap(_map);
       game.startGame();
 }
 public override void process(FortNitta game)
 {
     game.rooms.Clear();
       int i;
       for (i = 0; i < _rooms.Count; i++)
       {
     game.rooms.Add((_rooms[i])._name);
       }
 }
 public override void process(FortNitta game)
 {
     int x = this._x_coordinate;
       int y = this._y_coordinate;
       int id = this._player_id - 1;
       game.rotateWalls(id);
 }
 public override void process(FortNitta game)
 {
     int i;
       game.players.Clear();
       if (_result == 1)
       {
     for (i = 0; i < _numPlayers; i++)
     {
       game.players.Add(_playerNames[i]);
     }
     game.setMenu("joinRoom");
       }
       //go to new room
       //list players
 }
 public override void process(FortNitta game)
 {
     game.setMenu("roomMenu");
       //go back to lobby
 }
 public override void process(FortNitta game)
 {
     // implement start game
 }
 public override void process(FortNitta game)
 {
     if (_result == 1)
       {
     game.setMenu("newRoom");
       }//if succesfully room created
       else
       {
     //you stay in SelectRoom menu
       }
 }
 public abstract void process(FortNitta game);
 public override void process(FortNitta game)
 {
     int x = this._x_coordinate;
       int y = this._y_coordinate;
       int id = this._player_id - 1;
       game.cursorLocations[id] = new Microsoft.Xna.Framework.Point(x, y);
 }
 public override void process(FortNitta game)
 {
     game.players.Remove(_userName);
 }
 public override void process(FortNitta game)
 {
     game.rooms.Clear();
       game.players.Clear();
       game.setMenu("roomMenu");
 }
Exemple #15
0
 public void Update(FortNitta game)
 {
     Response response;
       while (_queueIn.Count > 0)
       {
     if (_queueIn.TryDequeue(out response))
     {
       //Now yoo have access to the game pointer inside every
       //process function.
       response.process(game);
       #if DEBUG
       msg = String.Format("Processed message from incoming queue.");
       #endif
     }
       }
 }