A so called encounter detection is used to find important battles in all sorts of multiplayer games. This code and idea is based on a work by :
- 
What is a "encounter"and how do we "detect" it?
 - 
Why do we search for encounters?
 - 
Related work on this subject: