summaryrefslogtreecommitdiff
path: root/Analizator9000
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2014-12-21 19:53:52 +0000
committeremkael <emkael@tlen.pl>2014-12-21 19:53:52 +0000
commit628aa405c56c42915a251f4411618b478b30aaeb (patch)
tree4b4df034dc95c5e46f2a816058684bcb421a8efb /Analizator9000
parent662381de7e10627641e86f3693e76df90bcc3e55 (diff)
* constants for declarer/denomination
git-svn-id: https://svn.emkael.info/an9k@35 05ec0d5d-773b-4d93-9e23-c81a7ac79feb
Diffstat (limited to 'Analizator9000')
-rw-r--r--Analizator9000/Analizator9000/BCalcWrapper.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Analizator9000/Analizator9000/BCalcWrapper.cs b/Analizator9000/Analizator9000/BCalcWrapper.cs
index 0e5c894..7a8588f 100644
--- a/Analizator9000/Analizator9000/BCalcWrapper.cs
+++ b/Analizator9000/Analizator9000/BCalcWrapper.cs
@@ -12,10 +12,19 @@ namespace Analizator9000
/// </summary>
struct BCalcResult
{
+ public const int DENOMINATION_NONTRUMP = 0;
+ public const int DENOMINATION_SPADES = 1;
+ public const int DENOMINATION_HEARTS = 2;
+ public const int DENOMINATION_DIAMONDS = 3;
+ public const int DENOMINATION_CLUBS = 4;
/// <summary>
/// Trump denomination (N/S/H/D/C).
/// </summary>
public char trumpSuit;
+ public const int DECLARER_NORTH = 0;
+ public const int DECLARER_EAST = 1;
+ public const int DECLARER_SOUTH = 2;
+ public const int DECLARER_WEST = 3;
/// <summary>
/// Declaring player (N/E/S/W).
/// </summary>
@@ -57,7 +66,6 @@ namespace Analizator9000
/// <param name="leader">Player on lead, in numeric format. See the original documentation for details.</param>
/// <returns>Pointer to solver instance.</returns>
/// <remarks>Original documentation: http://bcalc.w8.pl/API_C/bcalcdds_8h.html#ab636045f65412652246b769e8e95ed6f</remarks>
- //TODO Enum/constants for trumps/players, definitely.
[DllImport(@"bin\libbcalcdds.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr bcalcDDS_new(IntPtr format, IntPtr hands, Int32 trump, Int32 leader);