/home/leaf/crossfire/server/branches/1.12/include/typesproto.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_type_altar (void)
void init_type_armour_improver (void)
void init_type_arrow (void)
void init_type_blindness (void)
void init_type_book (void)
void init_type_button (void)
void init_type_cf_handle (void)
void init_type_check_inv (void)
void init_type_clock (void)
void init_type_container (void)
void init_type_converter (void)
void init_type_creator (void)
void init_type_deep_swamp (void)
void init_type_detector (void)
void init_type_director (void)
void init_type_duplicator (void)
void move_duplicator (object *op)
void init_type_exit (void)
void init_type_food (void)
void init_type_gate (void)
void init_type_hole (void)
void init_type_identify_altar (void)
void init_type_lamp (void)
void init_type_lighter (void)
void init_type_marker (void)
void move_marker (object *op)
void init_type_mood_floor (void)
void init_type_peacemaker (void)
void init_type_pedestal (void)
void init_type_player_changer (void)
void init_type_player_mover (void)
void init_type_poison (void)
void init_type_poisoning (void)
void init_type_potion (void)
void init_type_power_crystal (void)
void init_type_savebed (void)
void init_type_scroll (void)
void init_type_shop_inventory (void)
void init_type_shop_mat (void)
void init_type_sign (void)
void init_type_skillscroll (void)
void init_type_spell_effect (void)
void init_type_spellbook (void)
void init_type_spinner (void)
void init_type_teleporter (void)
void init_type_thrown_object (void)
void init_type_transport (void)
method_ret common_trap_type_move_on (ob_methods *context, object *trap, object *victim, object *originator)
method_ret common_trap_type_process (ob_methods *context, object *op)
void init_type_trap (void)
void init_type_rune (void)
void init_type_trapdoor (void)
void init_type_treasure (void)
void init_type_trigger (void)
void init_type_trigger_altar (void)
void init_type_trigger_button (void)
void init_type_trigger_pedestal (void)
void init_type_weapon_improver (void)
method_ret common_ob_move_on (ob_methods *context, object *trap, object *victim, object *originator)
method_ret common_pre_ob_move_on (object *trap, object *victim, object *originator)
void common_post_ob_move_on (object *trap, object *victim, object *originator)
void common_ob_describe (const ob_methods *context, const object *op, const object *observer, char *buf, size_t size)
void stop_projectile (object *op)
method_ret common_process_projectile (ob_methods *context, object *op)
method_ret common_projectile_move_on (ob_methods *context, object *trap, object *victim, object *originator)
method_ret legacy_ob_apply (ob_methods *context, object *op, object *applier, int aflags)
void legacy_ob_describe (const ob_methods *context, const object *op, const object *observer, char *buf, size_t size)
method_ret legacy_ob_process (ob_methods *context, object *op)


Function Documentation

void common_ob_describe ( const ob_methods context,
const object op,
const object observer,
char *  buf,
size_t  size 
)

Describes an object, seen by a given observer.

Parameters:
context The method context
op The object to describe
observer The object to make the description to
buf Buffer that will contain the description
size buf's size.

Definition at line 39 of file describe.c.

Here is the call graph for this function:

Here is the caller graph for this function:

method_ret common_ob_move_on ( ob_methods context,
object trap,
object victim,
object originator 
)

'victim' moves onto 'trap' 'victim' leaves 'trap' effect is determined by move_on/move_off of trap and move_type of victim.

originator: Player, monster or other object that caused 'victim' to move onto 'trap'. Will receive messages caused by this action. May be NULL. However, some types of traps require an originator to function.

Definition at line 41 of file common_apply.c.

Here is the call graph for this function:

void common_post_ob_move_on ( object trap,
object victim,
object originator 
)

Definition at line 88 of file common_apply.c.

Here is the caller graph for this function:

method_ret common_pre_ob_move_on ( object trap,
object victim,
object originator 
)

Definition at line 51 of file common_apply.c.

Here is the call graph for this function:

Here is the caller graph for this function:

method_ret common_process_projectile ( ob_methods context,
object op 
)

Move an arrow or thrown object along its course.

Parameters:
context The method context
op The arrow or thrown object being moved.
Todo:
Split this function up.
Returns:
METHOD_ERROR if op is not in a map, otherwise METHOD_OK

Definition at line 62 of file projectile.c.

Here is the call graph for this function:

method_ret common_projectile_move_on ( ob_methods context,
object trap,
object victim,
object originator 
)

Move on this Thrown Object object.

Parameters:
context The method context
trap The thrown object or arrow we're moving on
victim The object moving over this one
originator The object that caused the move_on event
Returns:
METHOD_OK

Definition at line 219 of file projectile.c.

Here is the call graph for this function:

Here is the caller graph for this function:

method_ret common_trap_type_move_on ( ob_methods context,
object trap,
object victim,
object originator 
)

Move on this Rune or Trap object.

Parameters:
context The method context
trap The rune or trap we're moving on
victim The object moving over this one
originator The object that caused the move_on event
Returns:
METHOD_OK

Definition at line 41 of file common_trap.c.

Here is the call graph for this function:

Here is the caller graph for this function:

method_ret common_trap_type_process ( ob_methods context,
object op 
)

Processes a Rune or Trap. Comments on runes (and traps): rune->level : level at which rune will cast its spell. rune->hp : number of detonations before rune goes away rune->msg : message the rune displays when it goes off rune->direction : direction it will cast a spell in rune->dam : damage the rune will do if it doesn't cast spells rune->attacktype: type of damage it does, if not casting spells rune->other_arch: spell in the rune rune->Cha : how hidden the rune is rune->maxhp : number of spells the rune casts

Parameters:
context The method context
op The rune or trap to process
Returns:
Always METHOD_OK

Definition at line 66 of file common_trap.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_altar ( void   ) 

Initializer for the ALTAR object type.

Definition at line 38 of file altar.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_armour_improver ( void   ) 

Initializer for the ARMOUR_IMPROVER object type.

Definition at line 38 of file armour_improver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_arrow ( void   ) 

Initializer for the ARROW object type.

Definition at line 38 of file arrow.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_blindness ( void   ) 

Initializer for the blindness object type.

Definition at line 39 of file blindness.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_book ( void   ) 

Initializer for the BOOK object type.

Definition at line 38 of file book.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_button ( void   ) 

Initializer for the BUTTON object type.

Definition at line 38 of file button.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_cf_handle ( void   ) 

Initializer for the CF_HANDLE object type.

Definition at line 38 of file cf_handle.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_check_inv ( void   ) 

Initializer for the CHECK_INV object type.

Definition at line 38 of file check_inv.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_clock ( void   ) 

Initializer for the CLOCK object type.

Definition at line 37 of file clock.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_container ( void   ) 

Initializer for the CONTAINER object type.

Definition at line 38 of file container.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_converter ( void   ) 

Initializer for the CONVERTER object type.

Definition at line 49 of file converter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_creator ( void   ) 

Initializer for the creator object type.

Definition at line 40 of file creator.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_deep_swamp ( void   ) 

Initializer for the DEEP_SWAMP object type.

Definition at line 39 of file deep_swamp.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_detector ( void   ) 

Initializer for the detector object type.

Definition at line 39 of file detector.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_director ( void   ) 

Initializer for the DIRECTOR object type.

Definition at line 38 of file director.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_duplicator ( void   ) 

Initializer for the duplicator object type.

Definition at line 39 of file duplicator.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_exit ( void   ) 

Initializer for the EXIT object type.

Definition at line 39 of file exit.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_food ( void   ) 

Initializer for the food object type.

Definition at line 40 of file food.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_gate ( void   ) 

Initializer for the gate object type.

Definition at line 40 of file gate.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_hole ( void   ) 

Initializer for the HOLE object type.

Definition at line 38 of file hole.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_identify_altar ( void   ) 

Initializer for the IDENTIFY_ALTAR object type.

Definition at line 38 of file identify_altar.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_lamp ( void   ) 

Initializer for the LAMP object type.

Definition at line 39 of file lamp.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_lighter ( void   ) 

Initializer for the LIGHTER object type.

Definition at line 38 of file lighter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_marker ( void   ) 

Initializer for the marker object type.

Definition at line 40 of file marker.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_mood_floor ( void   ) 

Initializer for the mood floor object type.

Definition at line 40 of file mood_floor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_peacemaker ( void   ) 

Initializer for the peacemaker object type.

Definition at line 39 of file peacemaker.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_pedestal ( void   ) 

Initializer for the PEDESTAL object type.

Definition at line 38 of file pedestal.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_player_changer ( void   ) 

Initializer for the player changer object type.

Definition at line 39 of file player_changer.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_player_mover ( void   ) 

Initializer for the PLAYERMOVER object type.

Definition at line 38 of file player_mover.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_poison ( void   ) 

Initializer for the POISON object type.

Definition at line 38 of file poison.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_poisoning ( void   ) 

Initializer for the poisoning object type.

Definition at line 38 of file poisoning.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_potion ( void   ) 

Initializer for the potion object type.

Definition at line 38 of file potion.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_power_crystal ( void   ) 

Initializer for the POWER_CRYSTAL object type.

Definition at line 37 of file power_crystal.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_rune ( void   ) 

Initializer for the RUNE object type.

Definition at line 36 of file rune.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_savebed ( void   ) 

Initializer for the SAVEBED object type.

Definition at line 39 of file savebed.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_scroll ( void   ) 

Initializer for the scroll object type.

Definition at line 37 of file scroll.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_shop_inventory ( void   ) 

Initializer for the SHOP_INVENTORY object type.

Definition at line 38 of file shop_inventory.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_shop_mat ( void   ) 

Initializer for the SHOP_MAT object type.

Definition at line 38 of file shop_mat.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_sign ( void   ) 

Initializer for the SIGN object type.

Definition at line 40 of file sign.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_skillscroll ( void   ) 

Initializer for the SKILLSCROLL object type.

Definition at line 39 of file skillscroll.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_spell_effect ( void   ) 

Initializer for the SPELL_EFFECT object type.

Definition at line 54 of file spell_effect.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_spellbook ( void   ) 

Initializer for the SPELLBOOK object type.

Definition at line 39 of file spellbook.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_spinner ( void   ) 

Initializer for the SPINNER object type.

Definition at line 38 of file spinner.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_teleporter ( void   ) 

Initializer for the teleporter object type.

Definition at line 40 of file teleporter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_thrown_object ( void   ) 

Initializer for the THROWN_OBJ object type.

Definition at line 38 of file thrown_object.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_transport ( void   ) 

Initializer for the TRANSPORT object type.

Definition at line 41 of file transport.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_trap ( void   ) 

Initializer for the TRAP object type.

Definition at line 36 of file trap.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_trapdoor ( void   ) 

Initializer for the TRAPDOOR object type.

Definition at line 38 of file trapdoor.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_treasure ( void   ) 

Initializer for the TREASURE object type.

Definition at line 38 of file treasure.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_trigger ( void   ) 

Initializer for the TRIGGER object type.

Definition at line 40 of file trigger.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_trigger_altar ( void   ) 

Initializer for the TRIGGER_ALTAR object type.

Definition at line 38 of file trigger_altar.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_trigger_button ( void   ) 

Initializer for the TRIGGER_BUTTON object type.

Definition at line 38 of file trigger_button.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_trigger_pedestal ( void   ) 

Initializer for the TRIGGER_PEDESTAL object type.

Definition at line 38 of file trigger_pedestal.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void init_type_weapon_improver ( void   ) 

Initializer for the WEAPON_IMPROVER object type.

Definition at line 44 of file weapon_improver.c.

Here is the call graph for this function:

Here is the caller graph for this function:

method_ret legacy_ob_apply ( ob_methods context,
object op,
object applier,
int  aflags 
)

Main apply handler.

Checks for unpaid items before applying.

Return value: 0: player or monster can't apply objects of that type 1: has been applied, or there was an error applying the object 2: objects of that type can't be applied if not in inventory

op is the object that is causing object to be applied, tmp is the object being applied.

aflag is special (always apply/unapply) flags. Nothing is done with them in this function - they are passed to apply_special

Definition at line 49 of file apply.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void legacy_ob_describe ( const ob_methods context,
const object op,
const object observer,
char *  buf,
size_t  size 
)

Describes an object, seen by a given observer.

Parameters:
context The method context
op The object to describe
observer The object to make the description to
buf Buffer that will contain the description
size buf's size.

Definition at line 38 of file legacy_describe.c.

Here is the call graph for this function:

Here is the caller graph for this function:

method_ret legacy_ob_process ( ob_methods context,
object op 
)

Definition at line 31 of file process.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void move_duplicator ( object op  ) 

Trigger for duplicator.

Will duplicate a specified object placed on top of it.

  • connected: what will trigger it.
  • level: multiplier. 0 to destroy.
  • other_arch: the object to look for and duplicate.

Parameters:
op duplicator.

Definition at line 54 of file duplicator.c.

Here is the call graph for this function:

void move_marker ( object op  ) 

Move function for marker objects.

When moved, a marker will search for a player sitting above it, and insert an invisible, weightless force into him with a specific code as the slaying field.

At that time, it writes the contents of its own message field to the player. The marker will decrement hp to 0 and then delete itself every time it grants a mark. unless hp was zero to start with, in which case it is infinite.

Author:
peterm@soda.csua.berkeley.edu
Parameters:
op marker to move. Can be removed if it reached its marking limit.

Definition at line 61 of file marker.c.

Here is the call graph for this function:

void stop_projectile ( object op  ) 

Handle an arrow or thrown object stopping.

Parameters:
op The arrow or thrown object that is stopping.

Definition at line 36 of file projectile.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu Mar 25 23:16:36 2010 for Crossfire Server, Branch 1.12 by  doxygen 1.5.8