|
Crossfire Server, Branch 1.12
R12190
|
The implementation of the Transport 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_transport (void) |
| Initializer for the TRANSPORT object type. | |
| static method_ret | transport_type_apply (ob_methods *context, object *op, object *applier, int aflags) |
| Player is trying to use a transport. | |
| static method_ret | transport_type_process (ob_methods *context, object *op) |
| Processes a Transport. | |
The implementation of the Transport class of objects.
A transport is basically little more than a container in which players can enter, and that can be moved around on the map.
Definition in file transport.c.
| void init_type_transport | ( | void | ) |
Initializer for the TRANSPORT object type.
Definition at line 41 of file transport.c.
References register_apply(), register_process(), TRANSPORT, transport_type_apply(), and transport_type_process().
Referenced by register_all_ob_types().


| static method_ret transport_type_apply | ( | ob_methods * | context, |
| object * | op, | ||
| object * | applier, | ||
| int | aflags | ||
| ) | [static] |
Player is trying to use a transport.
This returns same values as manual_apply() does. This function basically checks to see if the player can use the transport, and if so, sets up the appropriate pointers.
| context | The method context |
| op | The Transport to apply |
| applier | The object attempting to apply the Transport |
| aflags | Special flags (always apply/unapply) |
| 0 | If the applier was not a player |
| 1 | If the applier was a player |
Definition at line 58 of file transport.c.
References AP_APPLY, AP_UNAPPLY, draw_ext_info_format(), drop_object(), esrv_map_scroll(), find_animation(), find_face(), get_ob_key_value(), insert_ob_in_map(), insert_ob_in_ob(), is_in_shop(), MAX_BUF, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_SUCCESS, MSG_TYPE_APPLY_UNAPPLY, NDI_UNIQUE, new_faces, PLAYER, query_name(), remove_ob(), sum_weight(), and transport_can_hold().
Referenced by init_type_transport().


| static method_ret transport_type_process | ( | ob_methods * | context, |
| object * | op | ||
| ) | [static] |
Processes a Transport.
| context | The method context |
| op | The Transport to process |
| 0 | If the remaining speed of the transport was > 0.0 |
| 1 | If the remaining speed of the transport was < 0.0 |
Definition at line 258 of file transport.c.
Referenced by init_type_transport().

1.7.6.1