entNum = game.getNextEntityNum(getLocalPlayer(), entNum);
entNum = game.getNextEntityNum(entNum);
     public void calculatePhysicalTurn()     {        int entNum = game.getFirstEntityNum(getLocalPlayer());        int first = entNum;         do {             // take the first entity that can do an attack            Entity en = game.getEntity(entNum);            PhysicalOption bestAttack = getBestPhysical(en);            if (bestAttack != null) {                Vector v = new Vector();                v.addElement(bestAttack.toAction(game, entNum));                sendAttackData(entNum, v);                return;                }            entNum = game.getNextEntityNum(getLocalPlayer(), entNum);         } while (entNum != -1 && entNum != first);     }