Crossfire Server, Trunk
|
#include "global.h"
#include <stdlib.h>
#include "ob_methods.h"
#include "ob_types.h"
#include "shop.h"
#include "sounds.h"
#include "sproto.h"
Go to the source code of this file.
Functions | |
void | init_type_transport (void) |
static method_ret | transport_type_apply (object *op, object *applier, int aflags) |
static method_ret | transport_type_process (object *op) |
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.cpp.
void init_type_transport | ( | void | ) |
Initializer for the TRANSPORT object type.
Definition at line 37 of file transport.cpp.
References register_apply(), register_process(), TRANSPORT, transport_type_apply(), and transport_type_process().
Referenced by register_all_ob_types().
|
static |
Player is trying to use a transport. This returns same values as apply_manual() does. This function basically checks to see if the player can use the transport, and if so, sets up the appropriate pointers.
op | The Transport to apply |
applier | The object attempting to apply the Transport |
aflags | Special flags (always apply/unapply) |
Definition at line 51 of file transport.cpp.
References object::animation, AP_APPLY, AP_UNAPPLY, object::arch, archetype::clone, object::contr, draw_ext_info_format(), drop_object(), esrv_map_scroll(), object::face, find_animation(), FOR_INV_FINISH, FOR_INV_PREPARE, commongive::inv, socket_struct::look_position, object::map, MAX_BUF, METHOD_OK, METHOD_SILENT_ERROR, METHOD_UNHANDLED, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_SUCCESS, MSG_TYPE_APPLY_UNAPPLY, object::name, NDI_UNIQUE, object_find_by_type(), object_get_value(), object_insert_in_map_at(), object_insert_in_ob(), object_remove(), object_sum_weight(), give::op, PLAYER, mapstruct::players, query_name(), shop_contains(), player::socket, make_face_from_files::str, player::transport, transport_can_hold(), try_find_face(), object::type, socket_struct::update_look, object::x, and object::y.
Referenced by init_type_transport().
|
static |
Processes a Transport.
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 240 of file transport.cpp.
References give::op.
Referenced by init_type_transport().