home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / d / d-linux.zip / dm-dist / comm.h < prev    next >
C/C++ Source or Header  |  1991-03-01  |  1KB  |  29 lines

  1. /* ************************************************************************
  2. *  file: comm.h , Communication module.                   Part of DIKUMUD *
  3. *  Usage: Prototypes for the common functions in comm.c                   *
  4. ************************************************************************* */
  5.  
  6. void send_to_all(char *messg);
  7. void send_to_char(char *messg, struct char_data *ch);
  8. void send_to_except(char *messg, struct char_data *ch);
  9. void send_to_room(char *messg, int room);
  10. void send_to_room_except(char *messg, int room, struct char_data *ch);
  11. void send_to_room_except_two
  12.         (char *messg, int room, struct char_data *ch1, struct char_data *ch2);
  13. void perform_to_all(char *messg, struct char_data *ch);
  14. void perform_complex(struct char_data *ch1, struct char_data *ch2,
  15.                      struct obj_data *obj1, struct obj_data *obj2,
  16.                      char *mess, byte mess_type, bool hide);
  17.  
  18. void act(char *str, int hide_invisible, struct char_data *ch,
  19.     struct obj_data *obj, void *vict_obj, int type);
  20.  
  21. #define TO_ROOM    0
  22. #define TO_VICT    1
  23. #define TO_NOTVICT 2
  24. #define TO_CHAR    3
  25.  
  26. int write_to_descriptor(int desc, char *txt);
  27. void write_to_q(char *txt, struct txt_q *queue);
  28. #define SEND_TO_Q(messg, desc)  write_to_q((messg), &(desc)->output)
  29.