Java 类com.badlogic.gdx.graphics.g2d.ParticleEmitter.RangedNumericValue 实例源码

项目:fabulae    文件:WeatherParticleEmitter.java   
protected RangedNumericValue[] getXSizeValues (){
    if (xSizeValues == null){
        xSizeValues = new RangedNumericValue[3];
        xSizeValues[0] = xScaleValue;
        xSizeValues[1] = spawnWidthValue;
        xSizeValues[2] = xOffsetValue;
    }
    return xSizeValues;
}
项目:fabulae    文件:WeatherParticleEmitter.java   
protected RangedNumericValue[] getYSizeValues (){
    if (ySizeValues == null){
        ySizeValues = new RangedNumericValue[3];
        ySizeValues[0] = yScaleValue;
        ySizeValues[1] = spawnHeightValue;
        ySizeValues[2] = yOffsetValue;
    }
    return ySizeValues;
}
项目:fabulae    文件:WeatherParticleEmitter.java   
protected RangedNumericValue[] getMotionValues (){
    if (motionValues == null){
        motionValues = new RangedNumericValue[3];
        motionValues[0] = velocityValue;
        motionValues[1] = windValue;
        motionValues[2] = gravityValue;
    }
    return motionValues;
}
项目:fabulae    文件:WeatherParticleEmitter.java   
/** Permanently scales the speed of the emitter by scaling all its ranged values related to motion. */
public void scaleMotion (float scale){
    if (scale == 1f) return;
    for (RangedNumericValue value : getMotionValues()) value.scale(scale);
}