Crossfire Server, Trunk  R20739
ob_methods.h File Reference

Go to the source code of this file.

Data Structures

struct  ob_methods


#define METHOD_ERROR   2
#define METHOD_OK   0


typedef method_ret(* apply_func) (ob_methods *, object *, object *, int)
typedef void(* describe_func) (const ob_methods *, const object *, const object *, char *buf, size_t size)
typedef char method_ret
typedef method_ret(* move_on_func) (ob_methods *, object *, object *, object *)
typedef struct ob_methods ob_methods
typedef method_ret(* process_func) (ob_methods *, object *)
typedef method_ret(* trigger_func) (ob_methods *, object *, object *, int)

Detailed Description

Object type functions and variables.

Definition in file ob_methods.h.

Macro Definition Documentation



#define METHOD_OK   0

Definition at line 15 of file ob_methods.h.

Referenced by altar_type_move_on(), apply_by_living(), apply_by_living_below(), apply_manual(), armour_improver_type_apply(), arrow_type_process(), blindness_type_process(), book_type_apply(), button_type_move_on(), cf_handle_type_apply(), check_inv_type_move_on(), clock_type_apply(), common_ob_move_on(), common_pre_ob_move_on(), common_process_projectile(), common_projectile_move_on(), common_trap_type_move_on(), common_trap_type_process(), container_type_move_on(), converter_type_move_on(), creator_type_process(), creator_type_trigger(), deep_swamp_type_move_on(), deep_swamp_type_process(), detector_type_process(), director_type_move_on(), duplicator_type_trigger(), exit_type_apply(), exit_type_move_on(), food_type_apply(), gate_type_process(), hole_type_move_on(), identify_altar_type_move_on(), lamp_type_apply(), legacy_ob_apply(), legacy_ob_process(), lighter_type_apply(), marker_type_process(), marker_type_trigger(), mimic_type_apply(), mood_floor_type_process(), mood_floor_type_trigger(), peacemaker_type_process(), pedestal_type_move_on(), player_changer_type_process(), player_mover_type_move_on(), poison_type_apply(), poisoning_type_process(), potion_type_apply(), power_crystal_type_apply(), process_object(), savebed_type_apply(), scroll_type_apply(), shop_inventory_type_apply(), shop_mat_type_move_on(), sign_type_apply(), sign_type_move_on(), skillscroll_type_apply(), spell_effect_type_move_on(), spell_effect_type_process(), spellbook_type_apply(), spinner_type_move_on(), teleporter_type_process(), teleporter_type_trigger(), thrown_object_type_process(), timed_gate_type_process(), trapdoor_type_move_on(), treasure_type_apply(), trigger_altar_type_move_on(), trigger_button_type_move_on(), trigger_pedestal_type_move_on(), trigger_type_process(), and weapon_improver_type_apply().



Player was warned she can't use the item for now.

Definition at line 18 of file ob_methods.h.

Referenced by apply_by_living(), and apply_manual().


Typedef Documentation

◆ apply_func

typedef method_ret(* apply_func) (ob_methods *, object *, object *, int)

Definition at line 39 of file ob_methods.h.

◆ describe_func

typedef void(* describe_func) (const ob_methods *, const object *, const object *, char *buf, size_t size)

Definition at line 41 of file ob_methods.h.

◆ method_ret

typedef char method_ret

Define some standard return values for callbacks which don't need to return any other results. Later this might be expanded into a more complex return value system if necessary

Definition at line 14 of file ob_methods.h.

◆ move_on_func

typedef method_ret(* move_on_func) (ob_methods *, object *, object *, object *)

Definition at line 42 of file ob_methods.h.

◆ ob_methods

typedef struct ob_methods ob_methods

Definition at line 38 of file ob_methods.h.

◆ process_func

typedef method_ret(* process_func) (ob_methods *, object *)

Definition at line 40 of file ob_methods.h.

◆ trigger_func

typedef method_ret(* trigger_func) (ob_methods *, object *, object *, int)

Definition at line 43 of file ob_methods.h.