Exemplo n.º 1
0
        public static IntPtr createDeck()
        {
            IntPtr d = DLLcreateDeck();

            deck BJdeck = (deck)Marshal.PtrToStructure(d, typeof(deck));

            //(card)Marshal.PtrToStructure(Dstruct.cards[i], typeof(card));

            IntPtr d2 = DLLshuffle(ref BJdeck);

            deck BJdeck2 = (deck)Marshal.PtrToStructure(d2, typeof(deck));

            return(d2);
        }
Exemplo n.º 2
0
 public static extern void DLLdealerTurn(ref table t, ref deck d);
Exemplo n.º 3
0
 public static extern void DLLplayerTurn(ref table t, ref deck d, byte ans);
Exemplo n.º 4
0
 public static extern void DLLdealStartingHands(ref table t, ref deck d);
Exemplo n.º 5
0
 public static extern void DLLcleanUp(ref table t, ref deck d);
Exemplo n.º 6
0
 public static extern IntPtr DLLshuffle(ref deck d);