aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-animation/src/main/java/com
diff options
context:
space:
mode:
authorneothemachine <[email protected]>2013-02-21 16:40:08 +0100
committerneothemachine <[email protected]>2013-02-21 16:40:08 +0100
commitf774bd917e9dfd8cf46e5ed66d41aad64477a238 (patch)
tree8d33aa0cf24165710d420c677f3336641223cff8 /ardor3d-animation/src/main/java/com
parentedbc5c757c66d56eb2cffffa4076f0f2bfd6e748 (diff)
normalized line endings
see http://www.hanselman.com/blog/YoureJustAnotherCarriageReturnLineFeedInTheWall.aspx and https://help.github.com/articles/dealing-with-line-endings
Diffstat (limited to 'ardor3d-animation/src/main/java/com')
-rw-r--r--ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/AnimationUpdateStateListener.java38
-rw-r--r--ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedDoubleChannel.java334
-rw-r--r--ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedFloatChannel.java334
-rw-r--r--ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/state/IgnoreTransitionState.java110
4 files changed, 408 insertions, 408 deletions
diff --git a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/AnimationUpdateStateListener.java b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/AnimationUpdateStateListener.java
index 0e6a6fc..1afd8c5 100644
--- a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/AnimationUpdateStateListener.java
+++ b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/AnimationUpdateStateListener.java
@@ -1,19 +1,19 @@
-/**
- * Copyright (c) 2008-2012 Ardor Labs, Inc.
- *
- * This file is part of Ardor3D.
- *
- * Ardor3D is free software: you can redistribute it and/or modify it
- * under the terms of its license which may be found in the accompanying
- * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
- */
-
-package com.ardor3d.extension.animation.skeletal;
-
-import com.ardor3d.extension.animation.skeletal.AnimationManager.AnimationUpdateState;
-
-public interface AnimationUpdateStateListener {
-
- public void stateChanged(AnimationUpdateState oldState, AnimationUpdateState newState);
-
-}
+/**
+ * Copyright (c) 2008-2012 Ardor Labs, Inc.
+ *
+ * This file is part of Ardor3D.
+ *
+ * Ardor3D is free software: you can redistribute it and/or modify it
+ * under the terms of its license which may be found in the accompanying
+ * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
+ */
+
+package com.ardor3d.extension.animation.skeletal;
+
+import com.ardor3d.extension.animation.skeletal.AnimationManager.AnimationUpdateState;
+
+public interface AnimationUpdateStateListener {
+
+ public void stateChanged(AnimationUpdateState oldState, AnimationUpdateState newState);
+
+}
diff --git a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedDoubleChannel.java b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedDoubleChannel.java
index 40bbce4..25dc43e 100644
--- a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedDoubleChannel.java
+++ b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedDoubleChannel.java
@@ -1,167 +1,167 @@
-/**
- * Copyright (c) 2008-2012 Ardor Labs, Inc.
- *
- * This file is part of Ardor3D.
- *
- * Ardor3D is free software: you can redistribute it and/or modify it
- * under the terms of its license which may be found in the accompanying
- * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
- */
-
-package com.ardor3d.extension.animation.skeletal.clip;
-
-import java.io.IOException;
-import java.lang.reflect.Field;
-import java.util.List;
-
-import com.ardor3d.math.MathUtils;
-import com.ardor3d.util.export.InputCapsule;
-import com.ardor3d.util.export.OutputCapsule;
-import com.google.common.collect.Lists;
-
-/**
- * An animation source channel consisting of double value samples. These samples are interpolated between key frames.
- * Potential uses for this channel include extracting and using forward motion from walk animations, animating colors or
- * texture coordinates, etc.
- */
-public class InterpolatedDoubleChannel extends AbstractAnimationChannel {
-
- /** Our key samples. */
- protected final double[] _values;
-
- /**
- * Construct a new InterpolatedDoubleChannel.
- *
- * @param channelName
- * the name of this channel.
- * @param times
- * the time samples
- * @param keys
- * our key samples. Entries may be null. Should have as many entries as the times array.
- */
- public InterpolatedDoubleChannel(final String channelName, final float[] times, final double[] values) {
- super(channelName, times);
- _values = values == null ? null : new double[values.length];
- if (_values != null) {
- System.arraycopy(values, 0, _values, 0, values.length);
- }
- }
-
- public double[] getValues() {
- return _values;
- }
-
- @Override
- public void setCurrentSample(final int sampleIndex, final double progressPercent, final Object applyTo) {
- final double[] store = (double[]) applyTo;
-
- // set key
- store[0] = MathUtils.lerp(progressPercent, _values[sampleIndex], _values[sampleIndex + 1]);
- }
-
- @Override
- public double[] createStateDataObject(final AnimationClipInstance instance) {
- return new double[1];
- }
-
- @Override
- public InterpolatedDoubleChannel getSubchannelBySample(final String name, final int startSample, final int endSample) {
- if (startSample > endSample) {
- throw new IllegalArgumentException("startSample > endSample");
- }
- if (endSample >= getSampleCount()) {
- throw new IllegalArgumentException("endSample >= getSampleCount()");
- }
-
- final int samples = endSample - startSample + 1;
- final float[] times = new float[samples];
- final double[] values = new double[samples];
-
- for (int i = 0; i <= samples; i++) {
- times[i] = _times[i + startSample];
- values[i] = _values[i + startSample];
- }
-
- return new InterpolatedDoubleChannel(name, times, values);
- }
-
- @Override
- public InterpolatedDoubleChannel getSubchannelByTime(final String name, final float startTime, final float endTime) {
- if (startTime > endTime) {
- throw new IllegalArgumentException("startTime > endTime");
- }
- final List<Float> times = Lists.newArrayList();
- final List<Double> keys = Lists.newArrayList();
-
- final double[] data = new double[1];
-
- // Add start sample
- updateSample(startTime, data);
- times.add(0f);
- keys.add(data[0]);
-
- // Add mid samples
- for (int i = 0; i < getSampleCount(); i++) {
- final float time = _times[i];
- updateSample(time, data);
- if (time > startTime && time < endTime) {
- times.add(time - startTime);
- keys.add(_values[i]);
- }
- }
-
- // Add end sample
- updateSample(endTime, data);
- times.add(endTime - startTime);
- keys.add(data[0]);
-
- final float[] timesArray = new float[times.size()];
- int i = 0;
- for (final float time : times) {
- timesArray[i++] = time;
- }
- // return
- final double[] values = new double[keys.size()];
- i = 0;
- for (final double val : keys) {
- values[i++] = val;
- }
- return new InterpolatedDoubleChannel(name, timesArray, values);
- }
-
- // /////////////////
- // Methods for Savable
- // /////////////////
-
- public Class<? extends InterpolatedDoubleChannel> getClassTag() {
- return this.getClass();
- }
-
- @Override
- public void write(final OutputCapsule capsule) throws IOException {
- super.write(capsule);
- capsule.write(_values, "values", null);
- }
-
- @Override
- public void read(final InputCapsule capsule) throws IOException {
- super.read(capsule);
- final double[] values = capsule.readDoubleArray("values", null);
- try {
- final Field field1 = TriggerChannel.class.getDeclaredField("_values");
- field1.setAccessible(true);
- field1.set(this, values);
- } catch (final Exception e) {
- e.printStackTrace();
- }
- }
-
- public static InterpolatedDoubleChannel initSavable() {
- return new InterpolatedDoubleChannel();
- }
-
- protected InterpolatedDoubleChannel() {
- super(null, null);
- _values = null;
- }
-}
+/**
+ * Copyright (c) 2008-2012 Ardor Labs, Inc.
+ *
+ * This file is part of Ardor3D.
+ *
+ * Ardor3D is free software: you can redistribute it and/or modify it
+ * under the terms of its license which may be found in the accompanying
+ * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
+ */
+
+package com.ardor3d.extension.animation.skeletal.clip;
+
+import java.io.IOException;
+import java.lang.reflect.Field;
+import java.util.List;
+
+import com.ardor3d.math.MathUtils;
+import com.ardor3d.util.export.InputCapsule;
+import com.ardor3d.util.export.OutputCapsule;
+import com.google.common.collect.Lists;
+
+/**
+ * An animation source channel consisting of double value samples. These samples are interpolated between key frames.
+ * Potential uses for this channel include extracting and using forward motion from walk animations, animating colors or
+ * texture coordinates, etc.
+ */
+public class InterpolatedDoubleChannel extends AbstractAnimationChannel {
+
+ /** Our key samples. */
+ protected final double[] _values;
+
+ /**
+ * Construct a new InterpolatedDoubleChannel.
+ *
+ * @param channelName
+ * the name of this channel.
+ * @param times
+ * the time samples
+ * @param keys
+ * our key samples. Entries may be null. Should have as many entries as the times array.
+ */
+ public InterpolatedDoubleChannel(final String channelName, final float[] times, final double[] values) {
+ super(channelName, times);
+ _values = values == null ? null : new double[values.length];
+ if (_values != null) {
+ System.arraycopy(values, 0, _values, 0, values.length);
+ }
+ }
+
+ public double[] getValues() {
+ return _values;
+ }
+
+ @Override
+ public void setCurrentSample(final int sampleIndex, final double progressPercent, final Object applyTo) {
+ final double[] store = (double[]) applyTo;
+
+ // set key
+ store[0] = MathUtils.lerp(progressPercent, _values[sampleIndex], _values[sampleIndex + 1]);
+ }
+
+ @Override
+ public double[] createStateDataObject(final AnimationClipInstance instance) {
+ return new double[1];
+ }
+
+ @Override
+ public InterpolatedDoubleChannel getSubchannelBySample(final String name, final int startSample, final int endSample) {
+ if (startSample > endSample) {
+ throw new IllegalArgumentException("startSample > endSample");
+ }
+ if (endSample >= getSampleCount()) {
+ throw new IllegalArgumentException("endSample >= getSampleCount()");
+ }
+
+ final int samples = endSample - startSample + 1;
+ final float[] times = new float[samples];
+ final double[] values = new double[samples];
+
+ for (int i = 0; i <= samples; i++) {
+ times[i] = _times[i + startSample];
+ values[i] = _values[i + startSample];
+ }
+
+ return new InterpolatedDoubleChannel(name, times, values);
+ }
+
+ @Override
+ public InterpolatedDoubleChannel getSubchannelByTime(final String name, final float startTime, final float endTime) {
+ if (startTime > endTime) {
+ throw new IllegalArgumentException("startTime > endTime");
+ }
+ final List<Float> times = Lists.newArrayList();
+ final List<Double> keys = Lists.newArrayList();
+
+ final double[] data = new double[1];
+
+ // Add start sample
+ updateSample(startTime, data);
+ times.add(0f);
+ keys.add(data[0]);
+
+ // Add mid samples
+ for (int i = 0; i < getSampleCount(); i++) {
+ final float time = _times[i];
+ updateSample(time, data);
+ if (time > startTime && time < endTime) {
+ times.add(time - startTime);
+ keys.add(_values[i]);
+ }
+ }
+
+ // Add end sample
+ updateSample(endTime, data);
+ times.add(endTime - startTime);
+ keys.add(data[0]);
+
+ final float[] timesArray = new float[times.size()];
+ int i = 0;
+ for (final float time : times) {
+ timesArray[i++] = time;
+ }
+ // return
+ final double[] values = new double[keys.size()];
+ i = 0;
+ for (final double val : keys) {
+ values[i++] = val;
+ }
+ return new InterpolatedDoubleChannel(name, timesArray, values);
+ }
+
+ // /////////////////
+ // Methods for Savable
+ // /////////////////
+
+ public Class<? extends InterpolatedDoubleChannel> getClassTag() {
+ return this.getClass();
+ }
+
+ @Override
+ public void write(final OutputCapsule capsule) throws IOException {
+ super.write(capsule);
+ capsule.write(_values, "values", null);
+ }
+
+ @Override
+ public void read(final InputCapsule capsule) throws IOException {
+ super.read(capsule);
+ final double[] values = capsule.readDoubleArray("values", null);
+ try {
+ final Field field1 = TriggerChannel.class.getDeclaredField("_values");
+ field1.setAccessible(true);
+ field1.set(this, values);
+ } catch (final Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static InterpolatedDoubleChannel initSavable() {
+ return new InterpolatedDoubleChannel();
+ }
+
+ protected InterpolatedDoubleChannel() {
+ super(null, null);
+ _values = null;
+ }
+}
diff --git a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedFloatChannel.java b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedFloatChannel.java
index a0ff9f6..17f24d3 100644
--- a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedFloatChannel.java
+++ b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/clip/InterpolatedFloatChannel.java
@@ -1,167 +1,167 @@
-/**
- * Copyright (c) 2008-2012 Ardor Labs, Inc.
- *
- * This file is part of Ardor3D.
- *
- * Ardor3D is free software: you can redistribute it and/or modify it
- * under the terms of its license which may be found in the accompanying
- * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
- */
-
-package com.ardor3d.extension.animation.skeletal.clip;
-
-import java.io.IOException;
-import java.lang.reflect.Field;
-import java.util.List;
-
-import com.ardor3d.math.MathUtils;
-import com.ardor3d.util.export.InputCapsule;
-import com.ardor3d.util.export.OutputCapsule;
-import com.google.common.collect.Lists;
-
-/**
- * An animation source channel consisting of float value samples. These samples are interpolated between key frames.
- * Potential uses for this channel include extracting and using forward motion from walk animations, animating colors or
- * texture coordinates, etc.
- */
-public class InterpolatedFloatChannel extends AbstractAnimationChannel {
-
- /** Our key samples. */
- protected final float[] _values;
-
- /**
- * Construct a new InterpolatedFloatChannel.
- *
- * @param channelName
- * the name of this channel.
- * @param times
- * the time samples
- * @param values
- * our value samples. Entries may be null. Should have as many entries as the times array.
- */
- public InterpolatedFloatChannel(final String channelName, final float[] times, final float[] values) {
- super(channelName, times);
- _values = values == null ? null : new float[values.length];
- if (_values != null) {
- System.arraycopy(values, 0, _values, 0, values.length);
- }
- }
-
- public float[] getValues() {
- return _values;
- }
-
- @Override
- public void setCurrentSample(final int sampleIndex, final double progressPercent, final Object applyTo) {
- final float[] store = (float[]) applyTo;
-
- // set key
- store[0] = MathUtils.lerp((float) progressPercent, _values[sampleIndex], _values[sampleIndex + 1]);
- }
-
- @Override
- public float[] createStateDataObject(final AnimationClipInstance instance) {
- return new float[1];
- }
-
- @Override
- public InterpolatedFloatChannel getSubchannelBySample(final String name, final int startSample, final int endSample) {
- if (startSample > endSample) {
- throw new IllegalArgumentException("startSample > endSample");
- }
- if (endSample >= getSampleCount()) {
- throw new IllegalArgumentException("endSample >= getSampleCount()");
- }
-
- final int samples = endSample - startSample + 1;
- final float[] times = new float[samples];
- final float[] values = new float[samples];
-
- for (int i = 0; i <= samples; i++) {
- times[i] = _times[i + startSample];
- values[i] = _values[i + startSample];
- }
-
- return new InterpolatedFloatChannel(name, times, values);
- }
-
- @Override
- public InterpolatedFloatChannel getSubchannelByTime(final String name, final float startTime, final float endTime) {
- if (startTime > endTime) {
- throw new IllegalArgumentException("startTime > endTime");
- }
- final List<Float> times = Lists.newArrayList();
- final List<Float> keys = Lists.newArrayList();
-
- final float[] data = new float[1];
-
- // Add start sample
- updateSample(startTime, data);
- times.add(0f);
- keys.add(data[0]);
-
- // Add mid samples
- for (int i = 0; i < getSampleCount(); i++) {
- final float time = _times[i];
- updateSample(time, data);
- if (time > startTime && time < endTime) {
- times.add(time - startTime);
- keys.add(_values[i]);
- }
- }
-
- // Add end sample
- updateSample(endTime, data);
- times.add(endTime - startTime);
- keys.add(data[0]);
-
- final float[] timesArray = new float[times.size()];
- int i = 0;
- for (final float time : times) {
- timesArray[i++] = time;
- }
- // return
- final float[] values = new float[keys.size()];
- i = 0;
- for (final float val : keys) {
- values[i++] = val;
- }
- return new InterpolatedFloatChannel(name, timesArray, values);
- }
-
- // /////////////////
- // Methods for Savable
- // /////////////////
-
- public Class<? extends InterpolatedFloatChannel> getClassTag() {
- return this.getClass();
- }
-
- @Override
- public void write(final OutputCapsule capsule) throws IOException {
- super.write(capsule);
- capsule.write(_values, "values", null);
- }
-
- @Override
- public void read(final InputCapsule capsule) throws IOException {
- super.read(capsule);
- final float[] values = capsule.readFloatArray("values", null);
- try {
- final Field field1 = TriggerChannel.class.getDeclaredField("_values");
- field1.setAccessible(true);
- field1.set(this, values);
- } catch (final Exception e) {
- e.printStackTrace();
- }
- }
-
- public static InterpolatedFloatChannel initSavable() {
- return new InterpolatedFloatChannel();
- }
-
- protected InterpolatedFloatChannel() {
- super(null, null);
- _values = null;
- }
-}
+/**
+ * Copyright (c) 2008-2012 Ardor Labs, Inc.
+ *
+ * This file is part of Ardor3D.
+ *
+ * Ardor3D is free software: you can redistribute it and/or modify it
+ * under the terms of its license which may be found in the accompanying
+ * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
+ */
+
+package com.ardor3d.extension.animation.skeletal.clip;
+
+import java.io.IOException;
+import java.lang.reflect.Field;
+import java.util.List;
+
+import com.ardor3d.math.MathUtils;
+import com.ardor3d.util.export.InputCapsule;
+import com.ardor3d.util.export.OutputCapsule;
+import com.google.common.collect.Lists;
+
+/**
+ * An animation source channel consisting of float value samples. These samples are interpolated between key frames.
+ * Potential uses for this channel include extracting and using forward motion from walk animations, animating colors or
+ * texture coordinates, etc.
+ */
+public class InterpolatedFloatChannel extends AbstractAnimationChannel {
+
+ /** Our key samples. */
+ protected final float[] _values;
+
+ /**
+ * Construct a new InterpolatedFloatChannel.
+ *
+ * @param channelName
+ * the name of this channel.
+ * @param times
+ * the time samples
+ * @param values
+ * our value samples. Entries may be null. Should have as many entries as the times array.
+ */
+ public InterpolatedFloatChannel(final String channelName, final float[] times, final float[] values) {
+ super(channelName, times);
+ _values = values == null ? null : new float[values.length];
+ if (_values != null) {
+ System.arraycopy(values, 0, _values, 0, values.length);
+ }
+ }
+
+ public float[] getValues() {
+ return _values;
+ }
+
+ @Override
+ public void setCurrentSample(final int sampleIndex, final double progressPercent, final Object applyTo) {
+ final float[] store = (float[]) applyTo;
+
+ // set key
+ store[0] = MathUtils.lerp((float) progressPercent, _values[sampleIndex], _values[sampleIndex + 1]);
+ }
+
+ @Override
+ public float[] createStateDataObject(final AnimationClipInstance instance) {
+ return new float[1];
+ }
+
+ @Override
+ public InterpolatedFloatChannel getSubchannelBySample(final String name, final int startSample, final int endSample) {
+ if (startSample > endSample) {
+ throw new IllegalArgumentException("startSample > endSample");
+ }
+ if (endSample >= getSampleCount()) {
+ throw new IllegalArgumentException("endSample >= getSampleCount()");
+ }
+
+ final int samples = endSample - startSample + 1;
+ final float[] times = new float[samples];
+ final float[] values = new float[samples];
+
+ for (int i = 0; i <= samples; i++) {
+ times[i] = _times[i + startSample];
+ values[i] = _values[i + startSample];
+ }
+
+ return new InterpolatedFloatChannel(name, times, values);
+ }
+
+ @Override
+ public InterpolatedFloatChannel getSubchannelByTime(final String name, final float startTime, final float endTime) {
+ if (startTime > endTime) {
+ throw new IllegalArgumentException("startTime > endTime");
+ }
+ final List<Float> times = Lists.newArrayList();
+ final List<Float> keys = Lists.newArrayList();
+
+ final float[] data = new float[1];
+
+ // Add start sample
+ updateSample(startTime, data);
+ times.add(0f);
+ keys.add(data[0]);
+
+ // Add mid samples
+ for (int i = 0; i < getSampleCount(); i++) {
+ final float time = _times[i];
+ updateSample(time, data);
+ if (time > startTime && time < endTime) {
+ times.add(time - startTime);
+ keys.add(_values[i]);
+ }
+ }
+
+ // Add end sample
+ updateSample(endTime, data);
+ times.add(endTime - startTime);
+ keys.add(data[0]);
+
+ final float[] timesArray = new float[times.size()];
+ int i = 0;
+ for (final float time : times) {
+ timesArray[i++] = time;
+ }
+ // return
+ final float[] values = new float[keys.size()];
+ i = 0;
+ for (final float val : keys) {
+ values[i++] = val;
+ }
+ return new InterpolatedFloatChannel(name, timesArray, values);
+ }
+
+ // /////////////////
+ // Methods for Savable
+ // /////////////////
+
+ public Class<? extends InterpolatedFloatChannel> getClassTag() {
+ return this.getClass();
+ }
+
+ @Override
+ public void write(final OutputCapsule capsule) throws IOException {
+ super.write(capsule);
+ capsule.write(_values, "values", null);
+ }
+
+ @Override
+ public void read(final InputCapsule capsule) throws IOException {
+ super.read(capsule);
+ final float[] values = capsule.readFloatArray("values", null);
+ try {
+ final Field field1 = TriggerChannel.class.getDeclaredField("_values");
+ field1.setAccessible(true);
+ field1.set(this, values);
+ } catch (final Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+ public static InterpolatedFloatChannel initSavable() {
+ return new InterpolatedFloatChannel();
+ }
+
+ protected InterpolatedFloatChannel() {
+ super(null, null);
+ _values = null;
+ }
+}
diff --git a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/state/IgnoreTransitionState.java b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/state/IgnoreTransitionState.java
index f9a8625..153b181 100644
--- a/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/state/IgnoreTransitionState.java
+++ b/ardor3d-animation/src/main/java/com/ardor3d/extension/animation/skeletal/state/IgnoreTransitionState.java
@@ -1,55 +1,55 @@
-/**
- * Copyright (c) 2008-2012 Ardor Labs, Inc.
- *
- * This file is part of Ardor3D.
- *
- * Ardor3D is free software: you can redistribute it and/or modify it
- * under the terms of its license which may be found in the accompanying
- * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
- */
-
-package com.ardor3d.extension.animation.skeletal.state;
-
-import java.util.Map;
-
-import com.ardor3d.extension.animation.skeletal.AnimationManager;
-import com.ardor3d.extension.animation.skeletal.layer.AnimationLayer;
-
-/**
- * Dummy transition - does not change current state.
- */
-public class IgnoreTransitionState extends AbstractTransitionState {
-
- /**
- * Construct a new transition state.
- *
- * @param targetState
- * the name of the state to transition to.
- */
- public IgnoreTransitionState() {
- super(null);
- }
-
- @Override
- public AbstractFiniteState getTransitionState(final AbstractFiniteState callingState, final AnimationLayer layer) {
- // return calling state.
- return callingState;
- }
-
- /**
- * Ignored.
- */
- @Override
- public Map<String, ? extends Object> getCurrentSourceData(final AnimationManager manager) {
- return null;
- }
-
- /**
- * Ignored.
- */
- @Override
- public void update(final double globalTime, final AnimationLayer layer) {}
-
- @Override
- public void postUpdate(final AnimationLayer layer) {}
-}
+/**
+ * Copyright (c) 2008-2012 Ardor Labs, Inc.
+ *
+ * This file is part of Ardor3D.
+ *
+ * Ardor3D is free software: you can redistribute it and/or modify it
+ * under the terms of its license which may be found in the accompanying
+ * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
+ */
+
+package com.ardor3d.extension.animation.skeletal.state;
+
+import java.util.Map;
+
+import com.ardor3d.extension.animation.skeletal.AnimationManager;
+import com.ardor3d.extension.animation.skeletal.layer.AnimationLayer;
+
+/**
+ * Dummy transition - does not change current state.
+ */
+public class IgnoreTransitionState extends AbstractTransitionState {
+
+ /**
+ * Construct a new transition state.
+ *
+ * @param targetState
+ * the name of the state to transition to.
+ */
+ public IgnoreTransitionState() {
+ super(null);
+ }
+
+ @Override
+ public AbstractFiniteState getTransitionState(final AbstractFiniteState callingState, final AnimationLayer layer) {
+ // return calling state.
+ return callingState;
+ }
+
+ /**
+ * Ignored.
+ */
+ @Override
+ public Map<String, ? extends Object> getCurrentSourceData(final AnimationManager manager) {
+ return null;
+ }
+
+ /**
+ * Ignored.
+ */
+ @Override
+ public void update(final double globalTime, final AnimationLayer layer) {}
+
+ @Override
+ public void postUpdate(final AnimationLayer layer) {}
+}