Crossfire Server, Trunk  R22047
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


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


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


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


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

◆ anim_move_result

Result of one animation move.

◆ CFanimation

One full animation.

◆ CFAnimInitFunc

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

Definition at line 55 of file cfanim.h.

◆ CFAnimRunFunc

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

Definition at line 53 of file cfanim.h.

◆ CFmovement

typedef struct CFmovement_struct CFmovement

One move in an animation.

Enumeration Type Documentation

◆ anim_move_result

Result of one animation move.


Move completed.


Move should continue next time.

Definition at line 45 of file cfanim.h.

◆ time_enum

enum time_enum

Time units the animation can use.

add owner's speed unit

One second.


One server tick.

Definition at line 39 of file cfanim.h.

Variable Documentation

◆ animationbox

CFanimationHook animationbox[]

Available animation commands.

Definition at line 512 of file cfanim.c.

◆ animationcount

int animationcount

Definition at line 562 of file cfanim.c.

Referenced by get_command(), and prepare_commands().