Esempio n. 1
0
        public void SendShootData()
        {
            if (ClientName != Client.ReceiverGameData.TurnPlayerName || Client.ReceiverGameData.Shoots.Count == 3)
            {
                return;
            }
            var shootInfo = new ShootInfo
            {
                MousePoint = { X = GMouse.Position.X, Y = GMouse.Position.Y },
                ShootScore = Darts.GetIntersectedSegmentScore()
            };

            Client.ReceiverGameData.Shoots.Add(shootInfo);
            Client.SendGameMessage();
        }
Esempio n. 2
0
 public GDarts(Texture2D dartsTex)
 {
     Darts = new Darts(dartsTex);
     Initialize();
 }