Go to the documentation of this file.
66 if (old_transport && old_transport !=
op) {
69 "You must exit %s before you can board %s.",
86 "You disembark from %s.",
90 old_transport->
contr = NULL;
108 "%s has disembarked. You are now the captain of %s",
109 applier->
name, name_old);
124 "The %s is unable to hold your weight!",
130 if (
op->env == applier) {
137 "You cannot drop the %s in a shop to use it.",
144 "You need to drop the %s to use it.",
163 "The %s does not have space for any more people",
173 "The %s's captain is currently %s",
174 name_op,
op->contr->ob->name);
177 "You're the %s's captain",
189 applier->
map =
op->map;
190 if (ox !=
op->x || oy !=
op->y) {
218 base_speed = atof(kv);
220 base_speed =
op->arch->clone.speed;
222 op->speed = base_speed-(base_speed*
op->carrying*wsr)/(
op->weight_limit*100);
225 if (
op->speed < 0.10)
246 if (
op->speed_left < 0.0) {
247 op->speed_left += 1.0;
static method_ret transport_type_process(object *op)
void object_remove(object *op)
signed long object_sum_weight(object *op)
void esrv_map_scroll(socket_struct *ns, int dx, int dy)
void register_process(int ob_type, process_func method)
static method_ret transport_type_apply(object *op, object *applier, int aflags)
const char * object_get_value(const object *op, const char *const key)
#define MSG_TYPE_APPLY_SUCCESS
void query_name(const object *op, char *buf, size_t size)
void init_type_transport(void)
int transport_can_hold(const object *transport, const object *op, int nrof)
const Animations * animation
object * drop_object(object *op, object *tmp, uint32_t nrof)
void register_apply(int ob_type, apply_func method)
object * object_find_by_type(const object *who, int type)
object * object_insert_in_ob(object *op, object *where)
Animations * find_animation(const char *name)
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
const Face * try_find_face(const char *name, const Face *error)
bool shop_contains(object *ob)
#define MSG_TYPE_APPLY_ERROR
#define FOR_INV_PREPARE(op_, it_)
#define METHOD_SILENT_ERROR
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)
#define MSG_TYPE_APPLY_UNAPPLY