forked from kyonshi/grenzland-mud
[Sep 13 2007] - Rumble Changed binary search functions (real_xxxx, real_zone_by_thing), except real_shop. (thanks Neme) script_proto list freed when exiting without saving in oedit/medit/redit. (thanks Neme) dg_olc.c, trigedit_save(): trig name and arg duping removed. (thanks Neme) genobj.c, update_all_obects(): object ID copied, no more 0 uid. (thanks Neme) CLEANUP_ALL in redit after saving a room. (thanks Neme) new function in genolc.c: free_save_list(), called during shutdown. (thanks Neme) Event_free_all() now frees all events. (thanks Neme) Fixed memory leak in perform_act(). (thanks Rhade) Changed NUM_BOARDS from 10 to 7 (the actual num of boards). (thanks Neme) Removed the Keywords option in hedit since they have to be in the body. [Sep 12 2007] - Rumble Fixed crash bug caused by olist with no objects. (Thanks Rhade) Several changes made to compile clean on older versions of GCC. (Thanks Neme) ?Sep 10 2007] - Rumble Fixed items with rnum = NOTHING or NOBODY being changed to rnum = 0. (Thanks Neme) Fixed memory leak in dg_olc.c trigedit save. (Thanks Neme) [Sep 04 2007] - Rumble Changed CLSOLC to LVL_BUILDER. removed delete_doubledollar from do_say. (thanks Rhade) [Sep 01 2007] - Rumble Made Puff a hidden mob since she is used on room entry trigs to do dg_cast. Fixed dg_affect to not add 1 to the desired affect duration. Fixed dg_affect to work with 128 bits.
52 lines
2.4 KiB
C
52 lines
2.4 KiB
C
/**************************************************************************
|
|
* File: comm.h Part of tbaMUD *
|
|
* Usage: Header file, prototypes of public communication functions. *
|
|
* *
|
|
* All rights reserved. See license for complete information. *
|
|
* *
|
|
* Copyright (C) 1993, 94 by the Trustees of the Johns Hopkins University *
|
|
* CircleMUD is based on DikuMUD, Copyright (C) 1990, 1991. *
|
|
**************************************************************************/
|
|
|
|
#define NUM_RESERVED_DESCS 8
|
|
#define COPYOVER_FILE "copyover.dat"
|
|
|
|
/* comm.c */
|
|
size_t send_to_char(struct char_data *ch, const char *messg, ...) __attribute__
|
|
((format (printf, 2, 3)));
|
|
void send_to_all(const char *messg, ...) __attribute__ ((format (printf, 1,
|
|
2)));
|
|
void send_to_room(room_rnum room, const char *messg, ...) __attribute__ ((format
|
|
(printf, 2, 3)));
|
|
void send_to_outdoor(const char *messg, ...) __attribute__ ((format (printf, 1,
|
|
2)));
|
|
void send_to_range(room_vnum start, room_vnum finish, const char *messg, ...)
|
|
__attribute__ ((format (printf, 3, 4)));
|
|
|
|
void close_socket(struct descriptor_data *d);
|
|
void perform_act(const char *orig, struct char_data *ch, struct obj_data *obj, const void *vict_obj, const struct char_data *to);
|
|
char * act(const char *str, int hide_invisible, struct char_data *ch, struct obj_data *obj, const void *vict_obj, int type);
|
|
|
|
#define TO_ROOM 1
|
|
#define TO_VICT 2
|
|
#define TO_NOTVICT 3
|
|
#define TO_CHAR 4
|
|
#define TO_GMOTE 5
|
|
#define TO_SLEEP 128 /* to char, even if sleeping */
|
|
#define DG_NO_TRIG 256 /* don't check act trigger */
|
|
|
|
/* I/O functions */
|
|
void write_to_q(const char *txt, struct txt_q *queue, int aliased);
|
|
int write_to_descriptor(socket_t desc, const char *txt);
|
|
size_t write_to_output(struct descriptor_data *d, const char *txt, ...) __attribute__ ((format (printf, 2, 3)));
|
|
size_t vwrite_to_output(struct descriptor_data *d, const char *format, va_list args);
|
|
void string_add(struct descriptor_data *d, char *str);
|
|
void string_write(struct descriptor_data *d, char **txt, size_t len, long mailto, void *data);
|
|
|
|
#define PAGE_LENGTH 22
|
|
#define PAGE_WIDTH 80
|
|
void page_string(struct descriptor_data *d, char *str, int keep_internal);
|
|
|
|
typedef RETSIGTYPE sigfunc(int);
|
|
|