Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event system #3

Open
2 tasks
kmerfeld opened this issue Dec 13, 2017 · 0 comments
Open
2 tasks

Event system #3

kmerfeld opened this issue Dec 13, 2017 · 0 comments

Comments

@kmerfeld
Copy link
Owner

Every action in the game will be of the event struct.
the board will store a list of all events to happen in game,

Tasks:

  • Event struct
  • Event engine (reads event and does action)

Clients should be able to request all events they have access to and replay them reconnecting to the game session.

Struct will have the following fields:

  • player who initiated event
  • which player(s) are allowed to see the event (could be a draw event)
  • what action the event corresponds to (draw card, play card, attack x with card y)
  • options for above action (action: play card, option: card with id X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant