Crossfire Server, Branches 1.12  R18729
arrow.c File Reference
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
+ Include dependency graph for arrow.c:

Go to the source code of this file.

Functions

static method_ret arrow_type_process (ob_methods *context, object *op)
 
void init_type_arrow (void)
 

Detailed Description

The implementation of the Arrow class of objects.

Definition in file arrow.c.

Function Documentation

static method_ret arrow_type_process ( ob_methods context,
object op 
)
static

Move an arrow along its course. Uses common_process_projectile.

Parameters
contextThe method context
opThe arrow being moved.
Returns
METHOD_ERROR if op is not in a map, otherwise METHOD_OK

Definition at line 49 of file arrow.c.

References ARROW, common_process_projectile(), free_object(), llevError, LOG(), obj::map, METHOD_ERROR, METHOD_OK, remove_ob(), obj::speed, stop_projectile(), and obj::type.

Referenced by init_type_arrow().

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

References ARROW, arrow_type_process(), common_projectile_move_on(), register_move_on(), and register_process().

Referenced by register_all_ob_types().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: