Crossfire Server, Branches 1.12  R18729
cfanim.h File Reference
#include <plugin.h>
#include <plugin_common.h>
#include <cfanim_proto.h>
+ Include dependency graph for cfanim.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CFanimation_struct
 
struct  CFanimationHook
 
struct  CFmovement_struct
 

Macros

#define PLUGIN_NAME   "Animator"
 
#define PLUGIN_VERSION   "CFAnim Plugin 2.0"
 

Typedefs

typedef enum anim_move_result anim_move_result
 
typedef struct CFanimation_struct CFanimation
 
typedef long int(* CFAnimInitFunc )(const char *name, char *parameters, struct CFmovement_struct *)
 
typedef anim_move_result(* CFAnimRunFunc )(struct CFanimation_struct *animation, long int id, void *parameters)
 
typedef struct CFmovement_struct CFmovement
 

Enumerations

enum  anim_move_result { mr_finished, mr_again }
 
enum  time_enum { time_second, time_tick }
 

Variables

CFanimationHook animationbox []
 
int animationcount
 

Macro Definition Documentation

#define PLUGIN_VERSION   "CFAnim Plugin 2.0"

Definition at line 33 of file cfanim.h.

Referenced by closePlugin(), getPluginProperty(), initPlugin(), and postInitPlugin().

Typedef Documentation

Result of one animation move.

One full animation.

typedef long int(* CFAnimInitFunc)(const char *name, char *parameters, struct CFmovement_struct *)

Definition at line 58 of file cfanim.h.

typedef anim_move_result(* CFAnimRunFunc)(struct CFanimation_struct *animation, long int id, void *parameters)

Definition at line 56 of file cfanim.h.

typedef struct CFmovement_struct CFmovement

One move in an animation.

Enumeration Type Documentation

Result of one animation move.

Enumerator
mr_finished 

Move completed.

mr_again 

Move should continue next time.

Definition at line 48 of file cfanim.h.

enum time_enum

Time units the animation can use.

Todo:
add owner's speed unit
Enumerator
time_second 

One second.

time_tick 

One server tick.

Definition at line 42 of file cfanim.h.

Variable Documentation

CFanimationHook animationbox[]

Available animation commands.

Definition at line 461 of file cfanim.c.

int animationcount

Definition at line 510 of file cfanim.c.

Referenced by get_command(), and prepare_commands().