Crossfire Server  1.75.0
player_mover.cpp File Reference

The implementation of the Player-mover class of objects. More...

#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>

Go to the source code of this file.

Functions

void init_type_player_mover (void)
 Initializer for the PLAYERMOVER object type. More...
 
static method_ret player_mover_type_move_on (object *trap, object *victim, object *originator)
 Move on this Player Mover object. More...
 

Detailed Description

The implementation of the Player-mover class of objects.

Definition in file player_mover.cpp.

Function Documentation

◆ init_type_player_mover()

void init_type_player_mover ( void  )

Initializer for the PLAYERMOVER object type.

Definition at line 38 of file player_mover.cpp.

References player_mover_type_move_on(), PLAYERMOVER, and register_move_on().

Referenced by register_all_ob_types().

◆ player_mover_type_move_on()

static method_ret player_mover_type_move_on ( object trap,
object victim,
object originator 
)
static

Move on this Player Mover object.

Parameters
trapThe Player Mover we're moving on
victimThe object moving over this one
originatorThe object that caused the move_on event
Returns
METHOD_OK

Definition at line 48 of file player_mover.cpp.

References object::attacktype, common_post_ob_move_on(), common_pre_ob_move_on(), FABS, object::level, living::maxsp, METHOD_ERROR, METHOD_OK, PLAYER, should_director_abort(), object::speed, object::speed_left, object::stats, and object::type.

Referenced by init_type_player_mover().