multiplay.h 646 B

123456789101112131415161718192021222324252627282930
  1. #ifndef MULTIPLAY_H
  2. #define MULTIPLAY_H
  3. #include "bbsys.h"
  4. #include <dplay.h>
  5. void multiplay_link();
  6. bool multiplay_create();
  7. bool multiplay_destroy();
  8. int bbStartNetGame();
  9. int bbHostNetGame( BBStr *name );
  10. int bbJoinNetGame( BBStr *name,BBStr *address );
  11. void bbStopNetGame();
  12. DPID bbCreateNetPlayer( BBStr *name );
  13. void bbDeleteNetPlayer( DPID player );
  14. BBStr * bbNetPlayerName( DPID player );
  15. int bbNetPlayerLocal( DPID player );
  16. int bbSendNetMsg( int type,BBStr *msg,DPID from,DPID to,int reliable );
  17. int bbRecvNetMsg();
  18. int bbNetMsgType();
  19. BBStr * bbNetMsgData();
  20. DPID bbNetMsgFrom();
  21. DPID bbNetMsgTo();
  22. #endif