You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
447 B
19 lines
447 B
import { Pos } from "../components/arrows/Pos"
|
|
import { Segment } from "../components/arrows/BendableArrow"
|
|
import { PlayerId } from "./Player"
|
|
|
|
export enum MovementActionKind {
|
|
SCREEN = "SCREEN",
|
|
DRIBBLE = "DRIBBLE",
|
|
MOVE = "MOVE",
|
|
}
|
|
|
|
export type Action = { type: MovementActionKind } & MovementAction
|
|
|
|
export interface MovementAction {
|
|
fromPlayerId: PlayerId
|
|
toPlayerId?: PlayerId
|
|
moveFrom: Pos
|
|
segments: Segment[]
|
|
}
|