private int[] getHarmonic(int x)
{
int count = 0;
int p = 0;// 加权
int[] harmonics = new int[VIE_NUM];
for (Entry e : roleId_Score.entrySet())
{
if (count >= VIE_NUM)
{
break;
}
p = count + 1;
p = (p / 2 * (p % 2 == 1 ? -1 : 1));
p *= 5;
if (e.getValue() == x + p)
{
harmonics[count] = e.getKey();
count += 1;
}
}
return harmonics;
}