The vehicles are rows of a ludic.base Table with kind and owner as columns, every player's own by an owner index and a nid map: vehicle_of walks only that player's rows, vehicle_by_nid is a map lookup, and a player who leaves has their rows removed instead of the whole list rebuilt. ve_add takes the owner, so the owner is filed once and never assigned around the table. Positions stay on the record: a boat moves every frame and there are at most two a player. vehicles_test holds the table (9 tests); the game builds against it and lab/unit passes (88 tests). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
595 B
Text
18 lines
595 B
Text
# ludic.vehicles - a player's boat and horse: made the first time they are called to a place and
|
|
# fetched there after, one rider at a time, ridden over water or land, and put down again through
|
|
# the rider's own safe spot. The game draws them, prices them and words them.
|
|
module ludic_vehicles uses ludic_base
|
|
numbers float
|
|
import "ludic.base"
|
|
import "kinds.ludic"
|
|
import "table.ludic"
|
|
import "ports.ludic"
|
|
import "state.ludic"
|
|
import "places.ludic"
|
|
import "call.ludic"
|
|
import "keep.ludic"
|
|
import "mount.ludic"
|
|
import "ride.ludic"
|
|
import "horse.ludic"
|
|
import "legs.ludic"
|
|
import "system.ludic"
|