Audio and Effect tracks added a couple of accessors

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9609 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
rem..om 2012-08-03 21:06:07 +00:00
parent 96b7355347
commit 1fbc0cc406
2 changed files with 68 additions and 0 deletions

View File

@ -141,6 +141,38 @@ public class AudioTrack implements Track {
return new AudioTrack(audio, length, startOffset);
}
/**
*
* @return the audio node used by this track
*/
public AudioNode getAudio() {
return audio;
}
/**
* sets the audio node to be used for this track
* @param audio
*/
public void setAudio(AudioNode audio) {
this.audio = audio;
}
/**
*
* @return the start offset of the track
*/
public float getStartOffset() {
return startOffset;
}
/**
* set the start offset of the track
* @param startOffset
*/
public void setStartOffset(float startOffset) {
this.startOffset = startOffset;
}
/**
* Internal use only serialization
* @param ex exporter

View File

@ -158,6 +158,38 @@ public class EffectTrack implements Track {
return new EffectTrack(emitter, length, startOffset);
}
/**
*
* @return the emitter used by this track
*/
public ParticleEmitter getEmitter() {
return emitter;
}
/**
* Sets the Emitter to use in this track
* @param emitter
*/
public void setEmitter(ParticleEmitter emitter) {
this.emitter = emitter;
}
/**
*
* @return the start offset of the track
*/
public float getStartOffset() {
return startOffset;
}
/**
* set the start offset of the track
* @param startOffset
*/
public void setStartOffset(float startOffset) {
this.startOffset = startOffset;
}
/**
* Internal use only serialization
@ -185,4 +217,8 @@ public class EffectTrack implements Track {
length = in.readFloat("length", length);
startOffset = in.readFloat("startOffset", 0);
}
}