Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Turn Manager

Alexandru Dan edited this page Aug 29, 2017 · 6 revisions

The Turn Manger is a Daemon that runs in parallel with Worker Manager. While the purpose of the worker manager is to supervise the game room, the turn manager handles the actual simulation of the game. It is the "game loop".

The Turn Manager runs as follows:

  • pool each avatar for its decision
  • update the environment using the World Map
  • run a callback at the end of each turn (the callback registered in the service is sending the world updates through the socket)
  • check if the level is complete (the MMO will probably not finish)
Clone this wiki locally