File: funcpoint.h

package info (click to toggle)
crossfire 1.6.0.dfsg.1-4sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 17,048 kB
  • ctags: 5,716
  • sloc: ansic: 64,739; sh: 8,485; perl: 2,347; lex: 2,024; makefile: 1,038
file content (85 lines) | stat: -rw-r--r-- 3,568 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
 * static char *rcsid_funcpoint_h =
 *   "$Id: funcpoint.h,v 1.11 2003/10/27 03:44:33 temitchell Exp $";
 */

/*
    CrossFire, A Multiplayer game for X-windows

    Copyright (C) 1992 Frank Tore Johansen

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

    The author can be reached via e-mail to mark@pyramid.com.

    This file was made after an idea by vidarl@ifi.uio.no
*/

#ifndef FUNCPOINT_H
#define FUNCPOINT_H

/*
 * Some function types
 */
typedef void (*type_move_apply_func) (object *, object *, object *);
typedef void (*type_func_int)(int);
typedef void (*type_func_int_int)(int,int);
typedef void (*type_func_void)(void);
typedef void (*type_func_map)(mapstruct *);
typedef void (*type_func_map_char)(mapstruct *, char *);
typedef void (*type_func_int_map_char)(int, mapstruct *, char *);
typedef void (*type_func_ob)(object *);
typedef void (*type_func_ob_char)(object *, char *);
typedef void (*type_func_ob_cchar)(object *, const char *);
typedef void (*type_func_int_int_ob_cchar)(int, int, object *, const char *);
typedef void (*type_func_ob_ob)(object *, object *);
typedef void (*type_func_ob_int)(object *, int);
typedef int (*type_int_func_ob_ob)(object *, object *);
typedef void (*type_func_char_int)(char *, int);
typedef void (*type_func_int_ob_ob)(int, object *, object *);
typedef void (*type_func_player_int)(player *, int);
typedef void (*type_func_dragon_gain)(object *who, int atnr, int level);
typedef void (*type_func_char)(char *);
typedef object* (*type_ob_func_ob_int)(object *, int);

/*
 * These function-pointers are defined in common/glue.c
 * The functions used to set and initialise them are also there.
 */

extern void	(*move_apply_func)		(object *, object *, object *);
extern void	(*draw_info_func)		(int, int, object *, const char *);
extern void	(*emergency_save_func)		(int);
extern void	(*fix_auto_apply_func)		(mapstruct *);
extern void	(*init_blocksview_players_func)	();
extern void	(*monster_check_apply_func)	(object *, object *);
extern void	(*process_active_maps_func)	();
extern void	(*remove_friendly_object_func)	(object *);
extern void	(*update_buttons_func)		(mapstruct *);
extern void	(*info_map_func)		(int, mapstruct *, char *);
extern void	(*move_teleporter_func)		(object *);
extern void	(*move_firewall_func)		(object *);
extern void	(*move_creator_func)		(object *);
extern void  (*move_trigger_marker_func)	(object *);
extern void	(*move_duplicator_func)		(object *);
extern void     (*trap_adjust_func)		(object *, int);
extern void	(*esrv_send_item_func)		(object *, object *);
extern void	(*esrv_del_item_func)		(player *, int);
extern void	(*esrv_update_item_func)	(int, object *, object *);
extern void	(*set_darkness_map_func)	(mapstruct *m);
extern void     (*dragon_gain_func)             (object *, int, int);
extern void	(*weather_effect_func)		(char *);
extern object *	(*find_skill_by_number_func)	(object *, int);
#endif