Crossfire Server, Trunk
thrown_object.cpp File Reference
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
+ Include dependency graph for thrown_object.cpp:

Go to the source code of this file.

Functions

void init_type_thrown_object (void)
 
static method_ret thrown_object_type_process (object *op)
 

Detailed Description

The implementation of the Thrown Object class of objects.

Definition in file thrown_object.cpp.

Function Documentation

◆ init_type_thrown_object()

void init_type_thrown_object ( void  )

Initializer for the THROWN_OBJ object type.

Definition at line 38 of file thrown_object.cpp.

References common_projectile_move_on(), register_move_on(), register_process(), THROWN_OBJ, and thrown_object_type_process().

Referenced by register_all_ob_types().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ thrown_object_type_process()

static method_ret thrown_object_type_process ( object op)
static

Move a thrown object along its course. Uses common_process_projectile.

Parameters
opThe thrown object being moved.
Returns
METHOD_ERROR if op is not in a map, otherwise METHOD_OK

Definition at line 48 of file thrown_object.cpp.

References common_process_projectile(), llevError, LOG(), METHOD_ERROR, METHOD_OK, object_free_drop_inventory(), object_remove(), give::op, stop_projectile(), and THROWN_OBJ.

Referenced by init_type_thrown_object().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: