Crossfire Server, Trunk  R20574
Data Structures | Macros | Typedefs | Enumerations | Variables
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
 One full animation. More...
 
struct  CFanimationHook
 Available animation move. More...
 
struct  CFmovement_struct
 One move in an animation. More...
 

Macros

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

Typedefs

typedef enum anim_move_result anim_move_result
 Result of one animation move. More...
 
typedef struct CFanimation_struct CFanimation
 One full animation. More...
 
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
 One move in an animation. More...
 

Enumerations

enum  anim_move_result { mr_finished, mr_again }
 Result of one animation move. More...
 
enum  time_enum { time_second, time_tick }
 Time units the animation can use. More...
 

Variables

CFanimationHook animationbox []
 Available animation commands. More...
 
int animationcount
 

Macro Definition Documentation

◆ PLUGIN_NAME

#define PLUGIN_NAME   "Animator"

◆ PLUGIN_VERSION

#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.

Enumerator
mr_finished 

Move completed.

mr_again 

Move should continue next time.

Definition at line 45 of file cfanim.h.

◆ time_enum

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 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().