home *** CD-ROM | disk | FTP | other *** search
/ Ragnaroek / Ragnaroek.img / OpponentApp / RagnarokSpeaker.m < prev    next >
Text File  |  1991-12-09  |  2KB  |  107 lines

  1. #import <appkit/appkit.h>
  2. #import "RagnarokSpeaker.h"
  3. #import <mach.h>
  4. #import <sys/message.h>
  5. #import <servers/netname.h>
  6. extern port_t name_server_port;
  7. extern id NXResponsibleDelegate();
  8. @implementation  RagnarokSpeaker :Speaker
  9. {}
  10. -(int)submitMoveFrom : (int) from
  11.     To : (int) to
  12. /* */
  13. {
  14. return [self selectorRPC:"submitMoveFrom:To:"
  15.     paramTypes:"ii",
  16.         from,
  17.         to];
  18. }
  19. -(int)submitTentativeMoveFrom : (int) from
  20.     To : (int) to
  21. /* */
  22. {
  23. return [self selectorRPC:"submitTentativeMoveFrom:To:"
  24.     paramTypes:"ii",
  25.         from,
  26.         to];
  27. }
  28. -(int)submitNoTentativeMove
  29. /* */
  30. {
  31. return [self selectorRPC:"submitNoTentativeMove"
  32.     paramTypes:""];
  33. }
  34. -(int)submitUndos : (int) howMany
  35. /* */
  36. {
  37. return [self selectorRPC:"submitUndos:"
  38.     paramTypes:"i",
  39.         howMany];
  40. }
  41. -(int)submitResetGame
  42. /* */
  43. {
  44. return [self selectorRPC:"submitResetGame"
  45.     paramTypes:""];
  46. }
  47. -(int)submitMessage : (char *) aString
  48. /* */
  49. {
  50. return [self selectorRPC:"submitMessage:"
  51.     paramTypes:"c",
  52.         aString];
  53. }
  54. -(int)goodbye
  55. /* */
  56. {
  57. return [self selectorRPC:"goodbye"
  58.     paramTypes:""];
  59. }
  60. -(int)pleaseAllow : (int) tag
  61.     Undo : (int) howMany
  62. /* */
  63. {
  64. return [self selectorRPC:"pleaseAllow:Undo:"
  65.     paramTypes:"ii",
  66.         tag,
  67.         howMany];
  68. }
  69. -(int)pleaseAllow : (int) tag
  70.     StartOver : (int) ignored
  71. /* */
  72. {
  73. return [self selectorRPC:"pleaseAllow:StartOver:"
  74.     paramTypes:"ii",
  75.         tag,
  76.         ignored];
  77. }
  78. -(int)pleaseHurryUp : (int) tag
  79. /* */
  80. {
  81. return [self selectorRPC:"pleaseHurryUp:"
  82.     paramTypes:"i",
  83.         tag];
  84. }
  85. -(int)allow : (int) tag
  86. /* */
  87. {
  88. return [self selectorRPC:"allow:"
  89.     paramTypes:"i",
  90.         tag];
  91. }
  92. -(int)refuse : (int) tag
  93. /* */
  94. {
  95. return [self selectorRPC:"refuse:"
  96.     paramTypes:"i",
  97.         tag];
  98. }
  99. -(int)ok : (int) tag
  100. /* */
  101. {
  102. return [self selectorRPC:"ok:"
  103.     paramTypes:"i",
  104.         tag];
  105. }
  106. @end
  107.