Beispiel #1
0
        public void Fill(JsonCheckStatusResponse data, ESymbol mySymbol, bool isMyTurn)
        {
            foreach (var p in data.coordinates)
            {
                PointData pd = new PointData()
                {
                    X = p.x, Y = p.y
                };
                if (p.playerId == data.playerCircleId)
                {
                    CirclePoints.Add(pd);
                }
                if (p.playerId == data.playerCrossId)
                {
                    CrossPoints.Add(pd);
                }
            }

            MySymbol = mySymbol;
            IsMyTurn = isMyTurn;
        }
Beispiel #2
0
 internal void Clear()
 {
     CirclePoints.Clear();
     CrossPoints.Clear();
 }