java.util.Vector v = game.getPlayerEntities(localPlayer);
Vector v = game.getPlayerEntities(localPlayer);
    public void keyPressed(KeyEvent ke) {        switch (ke.getKeyCode()) {            case KeyEvent.VK_NUMPAD7:                scroll.y -= 36;                scroll.x -= 36;                break;            case KeyEvent.VK_NUMPAD8:                scroll.y -= 36;                break;            case KeyEvent.VK_NUMPAD9:                scroll.y -= 36;                scroll.x += 36;                break;            case KeyEvent.VK_NUMPAD1:                scroll.y += 36;                scroll.x -= 36;                break;            case KeyEvent.VK_NUMPAD2:                scroll.y += 36;                break;            case KeyEvent.VK_NUMPAD3:                scroll.y += 36;                scroll.x += 36;                break;            case KeyEvent.VK_NUMPAD4:                scroll.x -= 36;                break;            case KeyEvent.VK_NUMPAD6:                scroll.x += 36;                break;            case KeyEvent.VK_NUMPAD5:                // center on the selected entity                java.util.Vector v = game.getPlayerEntities(localPlayer);                //TODO please eliminate the usage of the clientgui                Entity se = clientgui == null ? null : game.getEntity(clientgui.getSelectedEntityNum());                for (int i = 0; i < v.size(); i++) {                    Entity e = (Entity) v.elementAt(i);                    if (e == se) {                        centerOnHex(e.getPosition());                    }                }                break;            case KeyEvent.VK_CONTROL:                ctlKeyHeld = true;                initCtlScroll = true;                break;        }        if (isTipShowing()) {            hideTooltip();        }        lastIdle = System.currentTimeMillis();        checkScrollBounds();        repaint();    }