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

feat: implement state machine to model game state #256

Draft
wants to merge 52 commits into
base: develop
Choose a base branch
from

Commits on Nov 21, 2021

  1. Configuration menu
    Copy the full SHA
    7946103 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    518119f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    68a0772 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. Configuration menu
    Copy the full SHA
    ffb5e6b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc81fae View commit details
    Browse the repository at this point in the history
  3. get all the things up to speed again

    - move `Phase` enum out of `PhaseSystem`
    - simplify `Phase` enum (for now)
    - remove separate components for phases
    - fix `start/end..Phase` methods
    skaldarnar committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    82c2a48 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    df60b2f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e467dff View commit details
    Browse the repository at this point in the history
  6. refactor: simplify phase transitions

    - create authority package for encapsulation
    - enhance phase enum with event suppliers
    - use event suppliers to generalize phase transition in PhaseSystem
    jdrueckert committed Dec 17, 2021
    Configuration menu
    Copy the full SHA
    6b7eab6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    13cc215 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    808f2c0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    912ac04 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2021

  1. introduce PhaseParameterAdapter to allow for Phase instances as com…

    …mand arguments
    
    The parsing of the in-game console arguments is handled by central `ParameterAdapter`s. Modules can register new adapters to extend the support for custom types.
    
    This adds support for the `Phase` enum to be used in the in-game console.
    skaldarnar committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    44c23a9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    baf45c9 View commit details
    Browse the repository at this point in the history
  3. fix checkstyle issues

    skaldarnar committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    3998e12 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. Configuration menu
    Copy the full SHA
    9ec8aba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d4581f View commit details
    Browse the repository at this point in the history
  3. feat: switch to Pre-Game Phase on first player joining game

    - replace `PregameEvent` with `OnPreGamePhaseStartedEvent`
    jdrueckert committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    f40653c View commit details
    Browse the repository at this point in the history
  4. feat: add LASTeamStatsComponent to game entity to track team sizes

    - update method in GameEntitySystem that can be called to update stats on-demand
    jdrueckert committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    9bee4be View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    00e2335 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    234f7f3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d93de23 View commit details
    Browse the repository at this point in the history
  8. feat: add command to set min team size

    - move commands to GameEntitySystem
    jdrueckert committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    7f3514c View commit details
    Browse the repository at this point in the history
  9. refactor: pregame client message

    - use configurable minTeamSize instead of static value
    - use broadcast OnPreGamePhaseStartedEvent instead of GameStartMesssage event
    jdrueckert committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    75f2274 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    840dc48 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    67a0ea9 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. Configuration menu
    Copy the full SHA
    8e48b4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84bf592 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2022

  1. Configuration menu
    Copy the full SHA
    447122f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c2a7cf1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f839df View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2022

  1. Configuration menu
    Copy the full SHA
    1427864 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2022

  1. Configuration menu
    Copy the full SHA
    ecc6b87 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2022

  1. feat: restrict conditions in which barrier effect is applied

    - only in pre-game and countdown phases
    - only if player is neither spectator (white team) nor unassigned
    jdrueckert committed Oct 2, 2022
    Configuration menu
    Copy the full SHA
    2a39f51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    75a4d42 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2022

  1. Configuration menu
    Copy the full SHA
    238b610 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    013b342 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ffee54 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ae24b83 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bffd298 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0e12a66 View commit details
    Browse the repository at this point in the history
  7. feat: cancel timer if no longer countdown phase, switch to in-game ph…

    …ase when countdown finished
    jdrueckert committed Oct 23, 2022
    Configuration menu
    Copy the full SHA
    806f18d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a1eae07 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1af8171 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    072b5c1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4ed4709 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    470ee3d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    eeedd5c View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. Configuration menu
    Copy the full SHA
    5c025a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    171b29a View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2022

  1. refactor: arena exit clean up actions

    - create PlayerExitedArenaEvent
    - on arena exit remove AllowShopScreenComponent (players only need the shop in-game)
    - move check for condition changes that trigger a phase change into LASSystem
    - switch player to white team instead of removing LASTeam component
    - trigger arena exit clean up actions for disconnecting clients before they are disconnected (requires MovingBlocks/Terasology#5077)
    jdrueckert committed Nov 6, 2022
    Configuration menu
    Copy the full SHA
    25b7d6e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d93ea07 View commit details
    Browse the repository at this point in the history