roguepy/actions.py

22 lines
229 B
Python

from dataclasses import dataclass
@dataclass
class Move:
x: int
y: int
@dataclass
class Idle:
pass
@dataclass
class NA:
pass
Action = Move | Idle | NA
ACTION_TIMING = {
Move: 50,
Idle: 10,
NA: 1
}