- summary: A fighter slides in a straight line from one cell to another (pushed or pulled).
- area: Game.Action
A fighter slides in a straight line from one cell to another (pushed or pulled).
Kind struct · Area Game.Action
One step of a fight action (GameActionFightEvent): a fighter is moved along a line, by a push or a pull.
READ IT LIKE THIS
1. Slide.target_id is the fighter that moves. The action's GameActionFightEvent.source_id is the
fighter whose spell caused it.
2. It leaves Slide.start_cell and stops on Slide.end_cell: put it on the end cell.
3. SEND NOTHING BACK; the next action of the sequence follows.
WHAT THE CLIENT DOES. It animates a slide from the start cell to the end cell. If the fighter is not on the start cell when the step plays, it jumps it to the end cell instead.
Not sent on its own — it travels inside GameActionFightEvent.slide. proven
Used by
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | target_id | int64 | The fighter that slides. (fighter (entity) id) | never |
| 2 | start_cell | int32 | The cell the fighter leaves. (map cell id) | never |
| 3 | end_cell | int32 | The cell the fighter ends on. (map cell id) Where the fighter stands after the step: update its position to this cell. | never |