Exemplo n.º 1
0
		protected void highlightPosition(TDrawBoardEvent e, TPosition pos) {
			if (pos != null)
				e.gfx.FillRectangle(new SolidBrush(Color.Red), pos.x * 16, pos.y * 16, 16, 16);
		}
Exemplo n.º 2
0
		public override void onDrawBoard(TDrawBoardEvent e) {
			base.onDrawBoard(e);

			if (e.type == EDrawBoardEventType.backgroundDrawed && showMove != null) {
				highlightPosition(e, showMove.start);
				highlightPosition(e, showMove.target);
			}

		}