diff options
author | emkael <emkael@tlen.pl> | 2016-05-25 13:28:25 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-05-25 13:28:25 +0200 |
commit | d76442512fd4314fcedbdc28a611f676ab70ce2b (patch) | |
tree | 21b01a4ed029cb8b7d844edb7f546926b140d1e4 /BCalcWrapper.cs | |
parent | e385b66ad2c83bf989f9cbe1fb2f2e995e6a0ece (diff) |
* project directory structure
Diffstat (limited to 'BCalcWrapper.cs')
-rw-r--r-- | BCalcWrapper.cs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/BCalcWrapper.cs b/BCalcWrapper.cs deleted file mode 100644 index d2d0aa2..0000000 --- a/BCalcWrapper.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System;
-using System.Runtime.InteropServices;
-
-namespace BCDD
-{
- /// <summary>
- /// Wrapper class for libbcalcDDS.ddl.
- /// </summary>
- class BCalcWrapper
- {
- public static char[] DENOMINATIONS = { 'C', 'D', 'H', 'S', 'N' };
- public static char[] PLAYERS = { 'N', 'E', 'S', 'W' };
-
- /// <remarks>http://bcalc.w8.pl/API_C/bcalcdds_8h.html#a8f522e85482fe383bebd963e873897f5</remarks>
- [DllImport(@"libbcalcdds.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern IntPtr bcalcDDS_new(IntPtr format, IntPtr hands, Int32 trump, Int32 leader);
-
- /// <remarks>http://bcalc.w8.pl/API_C/bcalcdds_8h.html#a369ce661d027bef3f717967e42bf8b33</remarks>
- [DllImport(@"libbcalcdds.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern Int32 bcalcDDS_getTricksToTake(IntPtr solver);
-
- /// <remarks>http://bcalc.w8.pl/API_C/bcalcdds_8h.html#a8998a1eb1ca25de2e07448381ce63261</remarks>
- [DllImport(@"libbcalcdds.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern IntPtr bcalcDDS_getLastError(IntPtr solver);
-
- /// <remarks>http://bcalc.w8.pl/API_C/bcalcdds_8h.html#a4a68da83bc7da4663e2257429539912d</remarks>
- [DllImport(@"libbcalcdds.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern void bcalcDDS_delete(IntPtr solver);
-
- /// <remarks>http://bcalc.w8.pl/API_C/bcalcdds_8h.html#a88fba3432e66efa5979bbc9e1f044164</remarks>
- [DllImport(@"libbcalcdds.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern void bcalcDDS_setTrumpAndReset(IntPtr solver, Int32 trump);
-
- /// <remarks>http://bcalc.w8.pl/API_C/bcalcdds_8h.html#a616031c1e1d856c4aac14390693adb4c</remarks>
- [DllImport(@"libbcalcdds.dll", CallingConvention = CallingConvention.Cdecl)]
- public static extern void bcalcDDS_setPlayerOnLeadAndReset(IntPtr solver, Int32 player);
-
- /// <remarks>http://bcalc.w8.pl/API_C/bcalcdds_8h.html#a6977a3b789bdf64eb2da9cbdb8b8fc39</remarks>
- public static Int32 bcalc_declarerToLeader(Int32 player)
- {
- return (player + 1) & 3;
- }
- }
-}
|