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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POOL field in MessageDispatcher should not be static?

damcaoson opened this issue · comments

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?

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?