Atrinik Server  4.0
Functions
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.

Functions

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)
 
 OBJECT_TYPE_INIT_DEFINE (player_mover)
 

Detailed Description

Handles code used for player movers.

Author
Alex Tokar

Definition in file player_mover.c.

Function Documentation

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

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

Parameters
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 
)
static

Handle an object triggering a player mover.

Parameters
opPlayer mover.
victimVictim.
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)
static

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

Parameters
opThe object to process.

Definition at line 135 of file player_mover.c.