Crossfire Server, Trunk
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 #include <plugin.h>
36 #include <plugin_common.h>
37 
39 enum time_enum {
42 };
43 
48 };
49 
50 struct CFanimation;
51 struct CFmovement;
52 
53 typedef anim_move_result (*CFAnimRunFunc)(struct CFanimation *animation, long int id, void *parameters);
54 
55 typedef long int (*CFAnimInitFunc)(const char *name, char *parameters, struct CFmovement *);
56 
58 struct CFmovement {
59  struct CFanimation *parent;
61  void *parameters;
62  long int id;
63  int tick;
65 };
66 
68 struct CFanimation {
69  char *name;
70  object *victim;
71  object *event;
72  int paralyze;
73  int invisible;
74  int wizard;
75  int unique;
76  int verbose;
77  int ghosted;
80  object *corpse;
81  long int tick_left;
85 };
86 
89  const char *name;
92 };
93 
95 
96 extern int animationcount;
97 
98 #include <cfanim_proto.h>
99 
100 #endif /* PLUGIN_ANIM_H */
CFanimationHook
Definition: cfanim.h:88
mr_again
@ mr_again
Definition: cfanim.h:47
CFanimation::corpse
object * corpse
Definition: cfanim.h:80
time_enum
time_enum
Definition: cfanim.h:39
CFanimation::paralyze
int paralyze
Definition: cfanim.h:72
cfanim_proto.h
CFmovement::tick
int tick
Definition: cfanim.h:63
plugin.h
CFAnimRunFunc
anim_move_result(* CFAnimRunFunc)(struct CFanimation *animation, long int id, void *parameters)
Definition: cfanim.h:53
mr_finished
@ mr_finished
Definition: cfanim.h:46
CFanimation::tick_left
long int tick_left
Definition: cfanim.h:81
CFmovement::id
long int id
Definition: cfanim.h:62
CFanimationHook::funcrun
CFAnimRunFunc funcrun
Definition: cfanim.h:91
CFanimation::wizard
int wizard
Definition: cfanim.h:74
animationbox
CFanimationHook animationbox[]
Definition: cfanim.cpp:562
CFmovement::parameters
void * parameters
Definition: cfanim.h:61
CFanimation::nextmovement
CFmovement * nextmovement
Definition: cfanim.h:83
CFanimation::errors_allowed
int errors_allowed
Definition: cfanim.h:78
time_tick
@ time_tick
Definition: cfanim.h:41
CFanimation::invisible
int invisible
Definition: cfanim.h:73
CFanimation::unique
int unique
Definition: cfanim.h:75
CFanimation::verbose
int verbose
Definition: cfanim.h:76
CFmovement::next
CFmovement * next
Definition: cfanim.h:64
anim_move_result
anim_move_result
Definition: cfanim.h:45
time_second
@ time_second
Definition: cfanim.h:40
CFanimation::time_representation
enum time_enum time_representation
Definition: cfanim.h:82
CFmovement::func
CFAnimRunFunc func
Definition: cfanim.h:60
filter.parameters
parameters
Definition: filter.py:41
CFanimation::ghosted
int ghosted
Definition: cfanim.h:77
CFmovement
Definition: cfanim.h:58
CFmovement::parent
struct CFanimation * parent
Definition: cfanim.h:59
plugin_common.h
CFanimation::victim
object * victim
Definition: cfanim.h:70
CFanimation::nextanimation
CFanimation * nextanimation
Definition: cfanim.h:84
make_face_from_files.int
int
Definition: make_face_from_files.py:32
CFAnimInitFunc
long int(* CFAnimInitFunc)(const char *name, char *parameters, struct CFmovement *)
Definition: cfanim.h:55
CFanimationHook::funcinit
CFAnimInitFunc funcinit
Definition: cfanim.h:90
CFanimation::event
object * event
Definition: cfanim.h:71
CFanimation
Definition: cfanim.h:68
CFanimation::name
char * name
Definition: cfanim.h:69
animationcount
int animationcount
Definition: cfanim.cpp:612
give.name
name
Definition: give.py:27
CFanimation::delete_end
int delete_end
Definition: cfanim.h:79
CFanimationHook::name
const char * name
Definition: cfanim.h:89
diamondslots.id
id
Definition: diamondslots.py:53