summaryrefslogtreecommitdiff
path: root/plugins/Chess4Net/ChessBoardHeaderUnit.pas
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Chess4Net/ChessBoardHeaderUnit.pas')
-rw-r--r--plugins/Chess4Net/ChessBoardHeaderUnit.pas21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/Chess4Net/ChessBoardHeaderUnit.pas b/plugins/Chess4Net/ChessBoardHeaderUnit.pas
new file mode 100644
index 0000000000..26ffb341a7
--- /dev/null
+++ b/plugins/Chess4Net/ChessBoardHeaderUnit.pas
@@ -0,0 +1,21 @@
+unit ChessBoardHeaderUnit;
+
+interface
+
+uses
+ Types;
+
+const
+ CHB_X = 20; CHB_Y = 6; // starting coordinates of A8 field
+
+function Size(const iX, iY: integer): TSize;
+
+implementation
+
+function Size(const iX, iY: integer): TSize;
+begin
+ Result.cx := iX;
+ Result.cy := iY;
+end;
+
+end.