Crossfire Server, Trunk
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  CFanimationHook
 
struct  CFmovement
 

Macros

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

Typedefs

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

Enumerations

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

Variables

CFanimationHook animationbox []
 
int animationcount
 

Macro Definition Documentation

◆ PLUGIN_NAME

#define PLUGIN_NAME   "Animator"

Definition at line 32 of file cfanim.h.

◆ PLUGIN_VERSION

#define PLUGIN_VERSION   "CFAnim Plugin 2.0"

Definition at line 33 of file cfanim.h.

Typedef Documentation

◆ CFAnimInitFunc

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

Definition at line 55 of file cfanim.h.

◆ CFAnimRunFunc

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

Definition at line 53 of file cfanim.h.

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 562 of file cfanim.cpp.

Referenced by get_command(), and prepare_commands().

◆ animationcount

int animationcount

Definition at line 612 of file cfanim.cpp.

Referenced by get_command(), and prepare_commands().