Package com.ardor3d.util.export

Examples of com.ardor3d.util.export.InputCapsule


        oc.write(_enabled, "enabled", true);
        oc.write(_passStates.values().toArray(new RenderState[0]), "passStates", null);
    }

    public void read(final InputCapsule capsule) throws IOException {
        final InputCapsule ic = capsule;
        _enabled = ic.readBoolean("enabled", true);
        final RenderState[] states = CapsuleUtils.asArray(ic.readSavableArray("passStates", null), RenderState.class);
        _passStates.clear();
        if (states != null) {
            for (final RenderState state : states) {
                _passStates.put(state.getType(), state);
            }
View Full Code Here


    }

    @Override
    public void read(final InputCapsule capsule) throws IOException {
        super.read(capsule);
        final InputCapsule cap = capsule;
        _wanderRadius = cap.readDouble("wanderRadius", DEFAULT_RADIUS);
        _wanderDistance = cap.readDouble("wanderDistance", DEFAULT_DISTANCE);
        _wanderJitter = cap.readDouble("wanderJitter", DEFAULT_JITTER);
    }
View Full Code Here

    }

    @Override
    public void read(final InputCapsule capsule) throws IOException {
        super.read(capsule);
        final InputCapsule cap = capsule;
        _swarmRangeSQ = cap.readDouble("swarmRangeSQ", DEFAULT_SWARM_RANGE_SQ);
        _deviance = cap.readDouble("deviance", DEFAULT_DEVIANCE);
        _turnSpeed = cap.readDouble("turnSpeed", DEFAULT_TURN_SPEED);
        _speedBump = cap.readDouble("speedBump", DEFAULT_SPEED_BUMP);
        _maxSpeed = cap.readDouble("maxSpeed", DEFAULT_MAX_SPEED);
        _swarmOffset.set((Vector3) cap.readSavable("swarmOffset", new Vector3()));
    }
View Full Code Here

TOP

Related Classes of com.ardor3d.util.export.InputCapsule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.