Summarized from English documentation by Gal Kaminka: ======================================================================= ======================================================================= === libsclient ver 3.03 1997/4/1 NODA Itsuki === === Library for Soccer Client === ======================================================================= ======================================================================= Function: init_connection ----------------------------------------------------------------------- init_connection() initializes and opens a UDP/IP socket to the specified `host' machine at `port'. Function: send_message ----------------------------------------------------------------------- send_message() sends a charactor string in `buf' to the server specified by `sock', which usually is created by init_connection(). Function: recieve_message ----------------------------------------------------------------------- receive_message() receives a message from the server specified by `sock'. This function receives an oldest message one by one. Compared with this, receive_info() receives a newest message, and discards older messages than the received message. Function: close_connection close_connection() close the socket specified by `sock'. Usually, `sock' is created by init_connection. Function: recieve_info receive_info() receives a newest message from the server specified by `sock'. This function receives a newest message, and discards older messages than the received message, while receive_message() receives a oldest message one by one. Function: scan_info ----------------------------------------------------------------------- scan_info() parses and analyzes a message in `buffer' sent from soccerserver, and puts the result into `sinfo'. Function: scan_visual_info ----------------------------------------------------------------------- scan_visual_info() parses and analyzes a visual information in `buffer' sent from soccerserver. The result is put into `sinfo' (a structure). Function: scan_auditorial_info ----------------------------------------------------------------------- scan_auditorial_info() parses and analyzes a auditorial information in `buffer' sent from soccerserver. The result is put into `sinfo' (a structure). Function: send_com_init ----------------------------------------------------------------------- send_com_init() sends a "init" command to soccerserver. Function: send_com_reconnect ----------------------------------------------------------------------- send_com_reconnect() sends a "reconnect" command to soccerserver. It returns the same InitInfo struct as send_com_init(). Function: send_com_move send_com_move() sends a "move" command to soccerserver. It moves client's player to (x,y) position in the field. This commands is available only when the playmode is BeforeKickOff. Function: send_com_turn send_com_turn() sends a "turn" command to soccerserver. The angle of turn is specified by `moment'. Function: send_com_dash ----------------------------------------------------------------------- send_com_dash() sends a "dash" commands to soccerserver. `power' specifies the amount of power of dash. Function: send_com_kick ----------------------------------------------------------------------- send_com_kick() sends a "kick" command to soccerserver. `power' and `dir' specify the amount of power and direction of kick respectively. Function: send_com_say ----------------------------------------------------------------------- send_com_say() sends a "say" command to soccerserver. Function: send_com_change_view ----------------------------------------------------------------------- send_com_change_view() sends a "change_view" command to soccerserver. Function: estimate_current_pos ----------------------------------------------------------------------- estimate_current_pos() estimates the current position of the player (absolute position (pos) and absolute direction (dir) in the field) from seen landmarks.