Exemplo n.º 1
0
 private void opponentMoved(string opponentID, Position opponentPosition)
 {
     foreach (GameComponent gc in Components)
     {
         if (gc is Opponent)
         {
             Opponent op = (Opponent)gc;
             if (op.Data.playerID == opponentID)
             {
                 op.Data.playerPosition = opponentPosition;
             }
         }
     }
 }
Exemplo n.º 2
0
 private void opJoined(PlayerData opponentData)
 {
     Opponent op = new Opponent(this, opponentSprite, opponentData, 1);
 }