[Package Index | Mudlib Index | Effect Index]

File /std/living/riding.c

This file contains utility methods relating to a player riding a transport

Written by runtime

Started 22 Jan 04

Includes

This class includes the following files /include/npc/transport.h

Method index

Public Functions

These are functions that everyone can access.

query_riding
int query_riding()

Query that returns whether or not the player is currently riding a transport npc

Returns:
0 if the player is not riding 1 if the player is riding


query_riding_transport
int query_riding_transport()

Query that returns the transport id of the transport the player is currently riding

Returns:
-1 if the player is not riding the transport id of the transport the player is riding


set_not_riding
void set_not_riding()

Sets the player as not riding a transport npc
set_riding
void set_riding(int trans_id)

Sets the player as riding a transport npc

Parameters:
trans_id - the id of the transport the player is riding