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;
void esrv_map_scroll(socket_struct *ns, int dx, int dy)
void init_type_transport(void)
void register_apply(int ob_type, apply_func method)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
void register_process(int ob_type, process_func method)
const char * object_get_value(const object *op, const char *const key)
object * object_insert_in_ob(object *op, object *where)
#define MSG_TYPE_APPLY_SUCCESS
void query_name(const object *op, char *buf, size_t size)
int transport_can_hold(const object *transport, const object *op, int nrof)
const Animations * animation
object * object_insert_in_map_at(object *op, mapstruct *m, object *originator, int flag, int x, int y)
object * drop_object(object *op, object *tmp, uint32_t nrof)
static method_ret transport_type_process(object *op)
object * object_find_by_type(const object *who, int type)
static method_ret transport_type_apply(object *op, object *applier, int aflags)
Animations * find_animation(const char *name)
void object_remove(object *op)
signed long object_sum_weight(object *op)
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
#define MSG_TYPE_APPLY_UNAPPLY