Atrinik Server  4.0
player_mover.c File Reference
#include <global.h>
#include <object.h>
#include <player.h>
#include <object_methods.h>

Go to the source code of this file.


static void player_mover_handle (object *op, object *victim, bool process)
static void process_func (object *op)
static int move_on_func (object *op, object *victim, object *originator, int state)

Detailed Description

Handles code used for player movers.

Alex Tokar

Definition in file player_mover.c.

Function Documentation

static int move_on_func ( object op,
object victim,
object originator,
int  state 

Triggered when an object moves moves off a square and when object moves onto a square.

opThe object that wants to catch this event.
victimThe object moving.
originatorThe object that is the cause of the move.
state1 if the object is moving onto a square, 0 if moving off a square.

Definition at line 153 of file player_mover.c.

OBJECT_TYPE_INIT_DEFINE ( player_mover  )

Initialize the player mover type object methods.

Definition at line 165 of file player_mover.c.

static void player_mover_handle ( object op,
object victim,
bool  process 

Handle an object triggering a player mover.

opPlayer mover.
processIf true, this is called as part of periodic processing (from process_func()).

Definition at line 47 of file player_mover.c.

static void process_func ( object op)

Processes an object, giving it the opportunity to move or react.

opThe object to process.

Definition at line 135 of file player_mover.c.