/* Filename : whuser.h Author(s) : winholdem development Date : 2004-JUN-25 Copyright : (c) 2004 HixoxiH Software History : */ #ifndef _whuser_h_ #define _whuser_h_ #ifdef WHUSER_EXPORTS #define WHUSER_API __declspec(dllexport) #else #define WHUSER_API __declspec(dllimport) #endif struct holdem_player { char m_name[16] ; //player name if known double m_balance ; //player balance double m_currentbet ; //player current bet unsigned char m_cards[2] ; //player cards unsigned char m_name_known : 1 ; //0=no 1=yes unsigned char m_balance_known : 1 ; //0=no 1=yes unsigned char m_fillerbits : 6 ; //filler bits unsigned char m_fillerbyte ; //filler bytes }; struct holdem_state { char m_title[64] ; //table title double m_pot[10] ; //total in each pot unsigned char m_cards[5] ; //common cards unsigned char m_is_playing : 1 ; //0=sitting-out, 1=sitting-in unsigned char m_is_posting : 1 ; //0=autopost-off, 1=autopost-on unsigned char m_fillerbits : 6 ; //filler bits unsigned char m_fillerbyte ; //filler byte unsigned char m_dealer_chair ; //0-9 holdem_player m_player[10] ; //player records }; typedef double (*process_message_t)(const char* message, const void* param ); WHUSER_API double process_message( const char* message, const void* param ); typedef double (*pfgws_t)( int c, const char* psym, bool& iserr ); #endif