public TTTGameView () : base ()
		{
			gridColor = UIColor.Black;
			horizontalLineViews = new UIView[] {
				newLineView (),
				newLineView ()
			};
			verticalLineViews = new UIView[] {
				newLineView (),
				newLineView ()
			};
			updateGridColor ();

			moveImageViews = new List <UIImageView> ();
			moveImageViewReuseQueue = new List <UIImageView> ();

			lineView = new TTTGameLineView ();
			lineView.Alpha = 0f;

			UITapGestureRecognizer gestureRecognizer = new UITapGestureRecognizer (tapGame);
			AddGestureRecognizer (gestureRecognizer);
		}
Beispiel #2
0
        public TTTGameView() : base()
        {
            gridColor           = UIColor.Black;
            horizontalLineViews = new UIView[] {
                newLineView(),
                newLineView()
            };
            verticalLineViews = new UIView[] {
                newLineView(),
                newLineView()
            };
            updateGridColor();

            moveImageViews          = new List <UIImageView> ();
            moveImageViewReuseQueue = new List <UIImageView> ();

            lineView       = new TTTGameLineView();
            lineView.Alpha = 0f;

            UITapGestureRecognizer gestureRecognizer = new UITapGestureRecognizer(tapGame);

            AddGestureRecognizer(gestureRecognizer);
        }