dao::creatures::Movement

struct

A creature’s movement as its movement controller has it now.

Declared in dao/Creatures.h.

Fields

Field Type  
combat bool = false in combat the table’s combat speed is taken, walking or running
multiplier float = 1 the product of its speed effects (Haste, slows): what the table’s speeds are scaled by
offset float = 0 added to the table’s speed before the multiplier
speed float = 0 metres a second it moves at now, eased toward target
state std::int32_t = 0 0 idle, 1 walking, 2 running, 3 stopping, 4 turning on the spot
target float = 0 metres a second it eases toward, by its state and the effects on it