Class PhysicsThreadManager

java.lang.Object
fr.phylisiumstudio.logic.PhysicsThreadManager

public class PhysicsThreadManager extends Object
  • Constructor Details

    • PhysicsThreadManager

      public PhysicsThreadManager(int maxThreads)
  • Method Details

    • registerWorld

      public void registerWorld(WorldPhysics worldPhysics)
      Submit a task to the executor service
      Parameters:
      worldPhysics - The world physics
    • unregisterWorld

      public void unregisterWorld(UUID worldId)
      Cancel the task associated with the world
      Parameters:
      worldId - The world id
    • shutdown

      public void shutdown()
      ArrĂȘter le gestionnaire de threads