Atrinik Server  4.0
Functions
waypoint.h File Reference

Go to the source code of this file.

Functions

objectwaypoint_get_active (object *npc)
 
objectwaypoint_get_aggro (object *npc)
 
objectwaypoint_get_home (object *npc)
 
void waypoint_compute_path (object *op)
 
void waypoint_move (object *op, object *npc)
 

Detailed Description

Waypoint related header file.

Definition in file waypoint.h.

Function Documentation

void waypoint_compute_path ( object op)

Perform a path computation for the waypoint object.

This function is called whenever our path request is dequeued.

Parameters
waypointThe waypoint object.

Definition at line 180 of file waypoint.c.

object* waypoint_get_active ( object npc)

Find a monster's currently active waypoint, if any.

Parameters
npcThe monster.
Returns
Active waypoint of this monster, NULL if none found.

Definition at line 53 of file waypoint.c.

object* waypoint_get_aggro ( object npc)

Find a monster's current aggro waypoint, if any.

Parameters
npcThe monster.
Returns
Aggro waypoint of this monster, NULL if none found.

Definition at line 75 of file waypoint.c.

object* waypoint_get_home ( object npc)

Find a monster's current home waypoint, if any.

Parameters
npcThe monster.
Returns
Return-home waypoint of this monster, NULL if none found.

Definition at line 98 of file waypoint.c.

void waypoint_move ( object op,
object npc 
)

Move towards waypoint target.

Parameters
opThe waypoint object.
npcObject to move.

Definition at line 283 of file waypoint.c.