#ifndef TicTacToe_INCLUDED #define TicTacToe_INCLUDED #include #ifdef WIN32 #ifdef DOEXPORT_SCRIPT #define EXPORT_SCRIPT __declspec(dllexport) #else #define EXPORT_SCRIPT #endif #else #define EXPORT_SCRIPT #endif class TicTacToe : public bncs_script_helper { public: TicTacToe( bncs_client_callback * parent, const char* path ); virtual ~TicTacToe(); void buttonCallback( buttonNotify *b ); int revertiveCallback( revertiveNotify * r ); void databaseCallback( revertiveNotify * r ); bncs_string parentCallback( parentNotify *p ); void timerCallback( int ); private: bncs_string m_myParam; bncs_string m_instance; bool xActive; bool oActive; bncs_string m_selectedButton; int maxClicks; int clickNumber; bncs_string b1State; bncs_string b2State; bncs_string b3State; bncs_string b4State; bncs_string b5State; bncs_string b6State; bncs_string b7State; bncs_string b8State; bncs_string b9State; bool winningGame; bncs_string winner; int statusInfoDriver; bncs_string m_statusInfoDriver; bool stateCheck(); }; #endif // TicTacToe_INCLUDED