From: Fredrik H. <fr...@us...> - 2004-08-23 19:24:20
|
Update of /cvsroot/rccparser/rccparser/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5586 Modified Files: rccparse.ypp rccparser.h Log Message: Added support for (ok move) Index: rccparse.ypp =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rccparse.ypp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** rccparse.ypp 23 Aug 2004 13:28:49 -0000 1.18 --- rccparse.ypp 23 Aug 2004 19:24:00 -0000 1.19 *************** *** 1455,1458 **** --- 1455,1460 ---- | LP OK_KW EAR_KW ON_OFF_KW RP { PARAM.buildEarOK( getBool( $4 ) ); } + | LP OK_KW MOVE_KW RP + { PARAM.buildMoveOK( ); } | LP OK_KW CHANGE_KW INT INT RP { Index: rccparser.h =================================================================== RCS file: /cvsroot/rccparser/rccparser/src/rccparser.h,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** rccparser.h 23 Aug 2004 13:28:49 -0000 1.40 --- rccparser.h 23 Aug 2004 19:24:00 -0000 1.41 *************** *** 1603,1606 **** --- 1603,1610 ---- void + buildMoveOK( ) + { M_parser.doBuildMoveOK( ); } + + void buildSayOK( ) { M_parser.doBuildSayOK( ); } *************** *** 8559,8562 **** --- 8563,8584 ---- void doBuildEarOK( bool on ) {} + + /** This function is called after parsing an \c move OK + * message. + * + * Override this function in your subclass to handle + * \c move OK messages. + * + * \pre The client is an online or offline coach + * + * \pre The client sent a \c move command + * + * \pre An entire \c move OK + * message has been parsed. + * + */ + virtual + void + doBuildMoveOK( ) {} /** This function is called after parsing an \c say OK |