Namespace in reactor_vehicles.js

Convoy

6 public functions in 2 groups · show internal (_) functions

Vehicles from the Prop Builder.

Quick Reference

Actions 1

resume() After a map's events were made (a transfer, a save loaded): the followers that ride are on their vehicles aga…

Other 5

riders() The followers that ride, in the line's order, each with its vehicle: [{ follower, event }].
form() The leader is seated: each follower of the line that finds a free vehicle near takes it.
disband() The ride is over: each convoy vehicle is parked where it stands, and its rider is a follower on foot again.
follow() One tick of the convoy, after the leader's own: where the leader is goes onto the trail, and each convoy vehi…
shift() The trail and the convoy's places counted from another map's corner: the map entered over a border (dx, dy ti…

Actions

resume

static source
Convoy.resume(moved)

After a map's events were made (a transfer, a save loaded): the followers that ride are on their vehicles again.

Other

riders

static source
Convoy.riders()

The followers that ride, in the line's order, each with its vehicle: [{ follower, event }].

form

static source
Convoy.form()

The leader is seated: each follower of the line that finds a free vehicle near takes it.

Details

The leader is seated: each follower of the line that finds a free vehicle near takes it. Returns how many did.

disband

static source
Convoy.disband()

The ride is over: each convoy vehicle is parked where it stands, and its rider is a follower on foot again.

follow

static source
Convoy.follow(p, lead, speed)

One tick of the convoy, after the leader's own: where the leader is goes onto the trail, and each convoy vehicle is put on the trail behind the one ahead of it.

Details

One tick of the convoy, after the leader's own: where the leader is goes onto the trail, and each convoy vehicle is put on the trail behind the one ahead of it. One that has not reached the trail yet (it stood beside it when the ride began) rides to it. speed is the leader's, signed.

shift

static source
Convoy.shift(dx, dy, mapId)

The trail and the convoy's places counted from another map's corner: the map entered over a border (dx, dy tiles).