Exemple #1
0
        void StateOfRoom()
        {
            for (int i = 0; i < gamers.Length; i++)
            {
                FieldStateMessage message
                    = new FieldStateMessage
                        (
                        gamers[i].client.gameField,
                        gamers[(i + 1) % gamers.Length].client.gameField.GetForEnemy(),
                        gamers[i].turn
                        );

                gamers[i].client.Send(message);
            }
        }
Exemple #2
0
 public static void NewGameMessage(FieldStateMessage message)
 {
     gameForm.ReDraw(message.you, message.enemy, message.turn);
 }