Help with ThreadPoolManager
Posted: Wed Aug 03, 2011 3:38 pm
Hello all, im working in a little game project for learn about thread pool and socket this summer and i need your help.
First of all i have to say that im using the ThreadPoolManager of L2Jserver.
So im trying to do a EffectManager to manage Buff like on l2, buff like shield, might etc. this work on my code yet but i have 2 problems.
I try to do "poison effect"(damage over time) and it work however i dont like how it work. The second problem is how to remove efects with skill like cleanse and cancel. I read about FutureTask and Callable but my head hurt so hard
.
Any suggestions to do damage over time and cancel thread?
First of all i have to say that im using the ThreadPoolManager of L2Jserver.
So im trying to do a EffectManager to manage Buff like on l2, buff like shield, might etc. this work on my code yet but i have 2 problems.
I try to do "poison effect"(damage over time) and it work however i dont like how it work. The second problem is how to remove efects with skill like cleanse and cancel. I read about FutureTask and Callable but my head hurt so hard

Any suggestions to do damage over time and cancel thread?