public void AddCommand(Command.Command command)
        {
            commands.Enqueue(command);

            switch (command.type)
            {
                case Command.Command.Type.Shoot:
                    LightShoot lightCommand = new LightShoot((Shoot)command);
                    communication.SendReliable(lightCommand, NetFrame.FrameType.shootCommand);
                    break;
            }
        }
 public void AddCommand(Command.Command command)
 {
     commands.Enqueue(command);
     switch (command.type)
     {
         case Command.Command.Type.Shoot:
             LightShootPlayer lightCommand = new LightShootPlayer((Shoot)command, GameEnvironment.Instance.Players.Count-1); // On client, player max-1 = server
             // TODO : change this ! (cf GameEnvironment)
             // TODO : use broadcast ?
             foreach (Player p in GameEnvironment.Instance.Players)
             {
                 if (p != GameEnvironment.Instance.LocalPlayer)
                 {
                     communication.SendReliable(lightCommand, NetFrame.FrameType.shootCommandPlayer, p);
                 }
             }
             break;
     }
 }