loadVector.add(game.getEntity( loadedId ));
loadVector.addElement(game.getEntity( loadedId ));
    private void receiveDeployment(Packet packet, int connId) {        Entity entity = game.getEntity(packet.getIntValue(0));        Coords coords = (Coords)packet.getObject(1);        int nFacing = packet.getIntValue(2);                // Handle units that deploy loaded with other units.        int loadedCount = packet.getIntValue(3);        Vector loadVector = new Vector();        for ( int i = 0; i < loadedCount; i++ ){            int loadedId = packet.getIntValue( 4 + i );            loadVector.add(game.getEntity( loadedId ));        }                // is this the right phase?        if (game.getPhase() != Game.PHASE_DEPLOYMENT) {            System.err.println("error: server got deployment packet in wrong phase");            return;        }                // can this player/entity act right now?        if (!game.getTurn().isValid(connId, entity)        || !game.board.isLegalDeployment(coords, entity.getOwner())) {            System.err.println("error: server got invalid deployment packet");            return;        }                // looks like mostly everything's okay        processDeployment(entity, coords, nFacing, loadVector);        endCurrentTurn();    }