| 1 |
root |
1.1 |
/* cfanim.c */ |
| 2 |
|
|
int get_dir_from_name(char *name); |
| 3 |
|
|
long int initmovement(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 4 |
|
|
int runmovement(struct CFanimation_struct *animation, long int id, void *parameters); |
| 5 |
|
|
long int initfire(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 6 |
|
|
int runfire(struct CFanimation_struct *animation, long int id, void *parameters); |
| 7 |
|
|
long int initturn(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 8 |
|
|
int runturn(struct CFanimation_struct *animation, long int id, void *parameters); |
| 9 |
|
|
long int initcamera(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 10 |
|
|
int runcamera(struct CFanimation_struct *animation, long int id, void *parameters); |
| 11 |
|
|
long int initvisible(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 12 |
|
|
int runvisible(struct CFanimation_struct *animation, long int id, void *parameters); |
| 13 |
|
|
long int initwizard(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 14 |
|
|
int runwizard(struct CFanimation_struct *animation, long int id, void *parameters); |
| 15 |
|
|
long int initsay(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 16 |
|
|
int runsay(struct CFanimation_struct *animation, long int id, void *parameters); |
| 17 |
|
|
long int initapply(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 18 |
|
|
int runapply(struct CFanimation_struct *animation, long int id, void *parameters); |
| 19 |
|
|
long int initapplyobject(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 20 |
|
|
int runapplyobject(struct CFanimation_struct *animation, long int id, void *parameters); |
| 21 |
|
|
long int initdropobject(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 22 |
|
|
int rundropobject(struct CFanimation_struct *animation, long int id, void *parameters); |
| 23 |
|
|
long int initpickup(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 24 |
|
|
int runpickup(struct CFanimation_struct *animation, long int id, void *parameters); |
| 25 |
|
|
long int initpickupobject(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 26 |
|
|
int runpickupobject(struct CFanimation_struct *animation, long int id, void *parameters); |
| 27 |
|
|
long int initghosted(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 28 |
|
|
int runghosted(struct CFanimation_struct *animation, long int id, void *parameters); |
| 29 |
|
|
long int initteleport(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 30 |
|
|
int runteleport(struct CFanimation_struct *animation, long int id, void *parameters); |
| 31 |
|
|
long int initnotice(char *name, char *parameters, struct CFmovement_struct *move_entity); |
| 32 |
|
|
int runnotice(struct CFanimation_struct *animation, long int id, void *parameters); |
| 33 |
|
|
void prepare_commands(void); |
| 34 |
|
|
int equality_split(char *buffer, char **variable, char **value); |
| 35 |
|
|
int get_boolean(char *string, int *bool); |
| 36 |
|
|
int is_animated_player(object *pl); |
| 37 |
|
|
void free_events(object *who); |
| 38 |
|
|
int start_animation(object *who, object *activator, char *file, char *options); |
| 39 |
|
|
void animate(void); |
| 40 |
|
|
void initContextStack(void); |
| 41 |
|
|
void pushContext(CFPContext *context); |
| 42 |
|
|
CFPContext *popContext(void); |
| 43 |
|
|
CF_PLUGIN int initPlugin(const char *iversion, f_plug_api gethooksptr); |
| 44 |
|
|
CF_PLUGIN void *getPluginProperty(int *type, ...); |
| 45 |
|
|
CF_PLUGIN int runPluginCommand(object *op, char *params); |
| 46 |
|
|
CF_PLUGIN int postInitPlugin(void); |
| 47 |
|
|
CF_PLUGIN void *globalEventListener(int *type, ...); |
| 48 |
|
|
CF_PLUGIN void *eventListener(int *type, ...); |
| 49 |
|
|
CF_PLUGIN int closePlugin(void); |
| 50 |
|
|
/* ../common/plugin_common.c */ |
| 51 |
|
|
int cf_init_plugin(f_plug_api getHooks); |
| 52 |
|
|
void *cf_map_get_property(mapstruct *map, int propcode); |
| 53 |
|
|
void *cf_map_set_int_property(mapstruct *map, int propcode, int value); |
| 54 |
|
|
void *cf_object_get_property(object *op, int propcode); |
| 55 |
elmex |
1.3 |
sint16 cf_object_get_resistance(object *op, int rtype); |
| 56 |
root |
1.1 |
void *cf_object_set_int_property(object *op, int propcode, int value); |
| 57 |
|
|
void *cf_object_set_long_property(object *op, int propcode, long value); |
| 58 |
|
|
void *cf_object_set_string_property(object *op, int propcode, char *value); |
| 59 |
|
|
void cf_player_move(player *pl, int dir); |
| 60 |
root |
1.2 |
void cf_object_move(object *op, int dir, object *originator); |
| 61 |
root |
1.1 |
object *cf_player_send_inventory(object *op); |
| 62 |
|
|
void cf_object_apply(object *op, object *author, int flags); |
| 63 |
|
|
void cf_object_apply_below(object *op); |
| 64 |
|
|
void cf_object_remove(object *op); |
| 65 |
|
|
void cf_object_free(object *op); |
| 66 |
|
|
object *cf_object_present_archname_inside(object *op, char *whatstr); |
| 67 |
|
|
int cf_object_transfer(object *op, int x, int y, int r, object *orig); |
| 68 |
|
|
int cf_object_change_map(object *op, int x, int y, mapstruct *map); |
| 69 |
|
|
object *cf_map_get_object_at(mapstruct *m, int x, int y); |
| 70 |
|
|
void cf_map_message(mapstruct *m, char *msg, int color); |
| 71 |
|
|
object *cf_object_clone(object *op, int clonetype); |
| 72 |
|
|
int cf_object_pay_item(object *op, object *buyer); |
| 73 |
|
|
int cf_object_pay_amount(object *op, uint64 amount); |
| 74 |
|
|
int cf_object_cast_spell(object *caster, object *ctoo, int dir, object *sp, char *flags); |
| 75 |
|
|
int cf_object_cast_ability(object *caster, object *ctoo, int dir, object *sp, char *flags); |
| 76 |
|
|
void cf_object_learn_spell(object *op, object *sp); |
| 77 |
|
|
void cf_object_forget_spell(object *op, object *sp); |
| 78 |
|
|
object *cf_object_check_for_spell(object *op, char *spellname); |
| 79 |
|
|
void cf_player_message(object *op, char *txt, int flags); |
| 80 |
|
|
player *cf_player_find(char *txt); |
| 81 |
|
|
char *cf_player_get_ip(object *op); |
| 82 |
|
|
mapstruct *cf_map_get_map(char *name); |
| 83 |
|
|
int cf_object_query_money(object *op); |
| 84 |
|
|
int cf_object_query_cost(object *op, object *who, int flags); |
| 85 |
|
|
void cf_object_activate_rune(object *op, object *victim); |
| 86 |
|
|
int cf_object_check_trigger(object *op, object *cause); |
| 87 |
|
|
int cf_object_out_of_map(object *op, int x, int y); |
| 88 |
|
|
void cf_object_drop(object *op, object *author); |
| 89 |
|
|
void cf_object_take(object *op, object *author); |
| 90 |
|
|
void cf_object_say(object *op, char *msg); |
| 91 |
|
|
void cf_object_speak(object *op, char *msg); |
| 92 |
|
|
object *cf_object_insert_object(object *op, object *container); |
| 93 |
|
|
char *cf_get_maps_directory(char *str); |
| 94 |
|
|
object *cf_create_object(void); |
| 95 |
|
|
object *cf_create_object_by_name(const char *name); |
| 96 |
|
|
void cf_free_object(object *ob); |
| 97 |
|
|
void cf_system_register_global_event(int event, const char *name, f_plug_api hook); |
| 98 |
|
|
void cf_fix_object(object *pl); |
| 99 |
|
|
char *cf_add_string(char *str); |
| 100 |
|
|
void cf_free_string(char *str); |
| 101 |
|
|
char *cf_query_name(object *ob); |
| 102 |
|
|
char *cf_query_name_pl(object *ob); |
| 103 |
|
|
char *cf_query_base_name(object *ob, int plural); |
| 104 |
|
|
object *cf_insert_ob_in_ob(object *ob, object *where); |
| 105 |
|
|
const char *cf_object_get_msg(object *ob); |
| 106 |
|
|
void cf_object_set_weight(object *ob, int weight); |
| 107 |
|
|
void cf_object_set_weight_limit(object *ob, int weight); |
| 108 |
|
|
int cf_object_get_weight(object *ob); |
| 109 |
|
|
int cf_object_get_weight_limit(object *ob); |
| 110 |
|
|
int cf_object_set_nrof(object *ob, int nrof); |
| 111 |
|
|
int cf_object_get_nrof(object *ob); |
| 112 |
|
|
int cf_object_get_flag(object *ob, int flag); |
| 113 |
|
|
void cf_object_set_flag(object *ob, int flag, int value); |
| 114 |
|
|
object *cf_object_insert_in_ob(object *ob, object *where); |
| 115 |
|
|
object *cf_map_insert_object_there(mapstruct *where, object *op, object *originator, int flags); |
| 116 |
|
|
object *cf_map_insert_object(mapstruct *where, object *op, int x, int y); |
| 117 |
|
|
int cf_object_teleport(object *op, mapstruct *map, int x, int y); |
| 118 |
|
|
object *cf_map_present_arch_by_name(const char *what, mapstruct *map, int nx, int ny); |
| 119 |
|
|
void cf_object_update(object *op, int flags); |
| 120 |
|
|
void cf_object_pickup(object *op, object *what); |
| 121 |
|
|
char *cf_strdup_local(char *txt); |
| 122 |
|
|
int cf_map_get_flags(mapstruct *map, mapstruct **nmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny); |
| 123 |
|
|
int cf_find_animation(char *txt); |
| 124 |
|
|
char *cf_object_get_key(object *op, char *keyname); |
| 125 |
|
|
void cf_object_set_key(object *op, char *keyname, char *value); |