Skip to content

System Design

srl edited this page May 5, 2023 · 1 revision

https://www.figma.com/file/LvnoFYnIp0fjtSOfyySE3A/srsim-event-flow-diagram?type=whiteboard&node-id=0%3A1&t=X3Qykvw51awFYLUv-1

AdvanceTurn:

  • talks to TurnManager to figure out who's turn is next

SkipActionCheck:

  • not sure on this yet but in game we can observe behaviour where an enemy comes up, but they are still frozen so their turn is skipped
  • if skipped, we go directly to EndTurn

FindAction:

  • asks eval for the next action current character should perform

ExecuteAction:

  • executes provided action
  • moves on to EndTurn if turn should be ending (determined by the action)
  • else repeats Action

ExecuteQueue:

  • this is to empty out any queued up actions such as follow up attacks or queued bursts

EndTurn:

  • todo? not sure what logic goes here

ExitCheck:

  • checks if we should exit the simulation either because:
    1. all targets dead
    2. some context timed out
    3. desired cycle count reached

Clone this wiki locally