mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
table layout
This commit is contained in:
parent
ba578dd897
commit
f2ff9bc811
1 changed files with 7 additions and 7 deletions
|
|
@ -90,13 +90,13 @@ This keeps the handler independent of concrete UI implementations.
|
||||||
|
|
||||||
`GameEventHandler` and `PlayerEventHandler` work together but have distinct roles:
|
`GameEventHandler` and `PlayerEventHandler` work together but have distinct roles:
|
||||||
|
|
||||||
| GameEventHandler | PlayerEventHandler |
|
| GameEventHandler | PlayerEventHandler |
|
||||||
|------------------|--------------------|
|
| ----------------- | ---------------------- |
|
||||||
| Global game state | Per-player state |
|
| Global game state | Per-player state |
|
||||||
| Turn / phase flow | Zones and cards |
|
| Turn / phase flow | Zones and cards |
|
||||||
| Player join/leave | Player actions |
|
| Player join/leave | Player actions |
|
||||||
| Spectator events | Player-specific events |
|
| Spectator events | Player-specific events |
|
||||||
| Chat dispatch | Card and zone updates |
|
| Chat dispatch | Card and zone updates |
|
||||||
|
|
||||||
When a server event is associated with a specific player, `GameEventHandler`
|
When a server event is associated with a specific player, `GameEventHandler`
|
||||||
routes it to the corresponding `PlayerEventHandler`. Events without a player
|
routes it to the corresponding `PlayerEventHandler`. Events without a player
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue