refactor(game): split protocol handler into focused services
This commit is contained in:
1 parent
80db48878c
commit
4e367fb5bb
15 files changed
+8697
-14435
No files matched your search
@@ -4,5 +4,13 @@ enum class Direction {
|
||||
DOWN,
|
||||
UP,
|
||||
LEFT,
|
||||
RIGHT
|
||||
RIGHT;
|
||||
|
||||
fun opposite(): Direction =
|
||||
when (this) {
|
||||
DOWN -> UP
|
||||
UP -> DOWN
|
||||
LEFT -> RIGHT
|
||||
RIGHT -> LEFT
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user