libgdx / gdx-ai

Artificial Intelligence framework for games based on libGDX or not. Features: Steering Behaviors, Formation Motion, Pathfinding, Behavior Trees and Finite State Machines
Apache License 2.0
1.2k stars 242 forks source link

POOL field in MessageDispatcher should not be static? #120

Open damcaoson opened 2 years ago

damcaoson commented 2 years ago

Hi,

My case is I'm using multiple MessageDispatcher in parallel but the POOL field in the class is shared for all instances, which causes failure in my use case. I think it is fine to remove the static modifier. What do you think?

damcaoson commented 2 years ago

Ah, I see it is helpful to use shared POOL for multiple MessageDispatcher in a single thread. So maybe we allow set Pool for MessageDispatcher in some way?