Crossfire Server, Branches 1.12  R18729
cfanim.h
Go to the documentation of this file.
1 /*****************************************************************************/
2 /* Crossfire Animator v2.0a */
3 /* Contacts: yann.chachkoff@myrealbox.com, tchize@myrealbox.com */
4 /*****************************************************************************/
5 /* That code is placed under the GNU General Public Licence (GPL) */
6 /* */
7 /* (C) 2001 David Delbecq for the original code version. */
8 /*****************************************************************************/
9 /* CrossFire, A Multiplayer game for X-windows */
10 /* */
11 /* Copyright (C) 2000 Mark Wedel */
12 /* Copyright (C) 1992 Frank Tore Johansen */
13 /* */
14 /* This program is free software; you can redistribute it and/or modify */
15 /* it under the terms of the GNU General Public License as published by */
16 /* the Free Software Foundation; either version 2 of the License, or */
17 /* (at your option) any later version. */
18 /* */
19 /* This program is distributed in the hope that it will be useful, */
20 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
21 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
22 /* GNU General Public License for more details. */
23 /* */
24 /* You should have received a copy of the GNU General Public License */
25 /* along with this program; if not, write to the Free Software */
26 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
27 /* */
28 /*****************************************************************************/
29 #ifndef PLUGIN_ANIM_H
30 #define PLUGIN_ANIM_H
31 
32 #define PLUGIN_NAME "Animator"
33 #define PLUGIN_VERSION "CFAnim Plugin 2.0"
34 
35 #ifndef __CEXTRACT__
36 #include <plugin.h>
37 #include <plugin_common.h>
38 #endif
39 
40 #include <plugin_common.h>
42 enum time_enum {
45 };
46 
48 typedef enum anim_move_result {
52 
53 struct CFanimation_struct;
54 struct CFmovement_struct;
55 
56 typedef anim_move_result (*CFAnimRunFunc)(struct CFanimation_struct *animation, long int id, void *parameters);
57 
58 typedef long int (*CFAnimInitFunc)(const char *name, char *parameters, struct CFmovement_struct *);
59 
61 typedef struct CFmovement_struct {
64  void *parameters;
65  long int id;
66  int tick;
68 } CFmovement;
69 
71 typedef struct CFanimation_struct {
72  char *name;
73  object *victim;
74  int paralyze;
75  int invisible;
76  int wizard;
77  int unique;
78  int verbose;
79  int ghosted;
81  object *corpse;
82  long int tick_left;
86 } CFanimation;
87 
89 typedef struct {
90  const char *name;
94 
96 
97 extern int animationcount;
98 
99 #ifndef __CEXTRACT__
100 #include <cfanim_proto.h>
101 #endif
102 
103 #endif /* PLUGIN_ANIM_H */
void * parameters
Definition: cfanim.h:64
CFAnimInitFunc funcinit
Definition: cfanim.h:91
long int id
Definition: cfanim.h:65
CFAnimRunFunc func
Definition: cfanim.h:63
CFAnimRunFunc funcrun
Definition: cfanim.h:92
anim_move_result(* CFAnimRunFunc)(struct CFanimation_struct *animation, long int id, void *parameters)
Definition: cfanim.h:56
object * victim
Definition: cfanim.h:73
enum time_enum time_representation
Definition: cfanim.h:83
struct CFanimation_struct * parent
Definition: cfanim.h:62
CFanimationHook animationbox[]
Definition: cfanim.c:461
long int(* CFAnimInitFunc)(const char *name, char *parameters, struct CFmovement_struct *)
Definition: cfanim.h:58
object * corpse
Definition: cfanim.h:81
struct CFanimation_struct CFanimation
anim_move_result
Definition: cfanim.h:48
struct CFanimation_struct * nextanimation
Definition: cfanim.h:85
struct CFmovement_struct * nextmovement
Definition: cfanim.h:84
const char * name
Definition: cfanim.h:90
struct CFmovement_struct CFmovement
long int tick_left
Definition: cfanim.h:82
struct CFmovement_struct * next
Definition: cfanim.h:67
int animationcount
Definition: cfanim.c:510
int errors_allowed
Definition: cfanim.h:80
time_enum
Definition: cfanim.h:42