From 03638665450319dfb5b2241cc38f38559eba6136 Mon Sep 17 00:00:00 2001 From: Tomaso2468 <48136416+Tomaso2468@users.noreply.github.com> Date: Thu, 5 Dec 2019 20:24:38 +0000 Subject: [PATCH] Updated ColorUtils documentation and deprecation. --- .../tomaso2468/rpgonline/BaseScaleState.java | 6 ++++-- .../github/tomaso2468/rpgonline/ColorUtils.java | 16 +++++++++++++++- .../tomaso2468/rpgonline/sky/MoonLayer.java | 1 + .../tomaso2468/rpgonline/sky/SunLayer.java | 1 + 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/RPGOnline2/src/io/github/tomaso2468/rpgonline/BaseScaleState.java b/RPGOnline2/src/io/github/tomaso2468/rpgonline/BaseScaleState.java index 99ab696..e6acc95 100644 --- a/RPGOnline2/src/io/github/tomaso2468/rpgonline/BaseScaleState.java +++ b/RPGOnline2/src/io/github/tomaso2468/rpgonline/BaseScaleState.java @@ -32,13 +32,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE package io.github.tomaso2468.rpgonline; /** - * An interface allowing a state to except a float scaling value. + * An interface allowing a state to scale based on a scaling value. + * * @author Tomaso2468 - * */ public interface BaseScaleState { /** * Scale the state to the specified scaling (1 == 100%). + * + * @param game The game. * @param base The scaling for the state. */ public void scale(Game game, float base); diff --git a/RPGOnline2/src/io/github/tomaso2468/rpgonline/ColorUtils.java b/RPGOnline2/src/io/github/tomaso2468/rpgonline/ColorUtils.java index 3a0002c..87db7f1 100644 --- a/RPGOnline2/src/io/github/tomaso2468/rpgonline/ColorUtils.java +++ b/RPGOnline2/src/io/github/tomaso2468/rpgonline/ColorUtils.java @@ -53,7 +53,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * * @see io.github.tomaso2468.rpgonline.post.ColorEffectsShader * - * @author Tomas, Ruo Feidu, Tanner Hellend + * @author Tomaso2468, Ruo Feidu, Tanner Hellend */ public final class ColorUtils { /** @@ -534,6 +534,7 @@ public static Color shiftHue(Color col, float shift) { * * @author Tomas */ + @Deprecated public static class SunColorGenerator { /** * Sun color red channel. @@ -604,6 +605,19 @@ public SunColorGenerator(Color sunlight, Color moonlight, Color sundown1, Color nightSky); } + /** + * Initi + * @param sunlight + * @param moonlight + * @param sundown1 + * @param sundown2 + * @param night + * @param sunlightSky + * @param sundown1Sky + * @param sundown2Sky + * @param moonlightSky + * @param nightSky + */ private void init(Color sunlight, Color moonlight, Color sundown1, Color sundown2, Color night, Color sunlightSky, Color sundown1Sky, Color sundown2Sky, Color moonlightSky, Color nightSky) { double[] x = { 0, 4.5, 5, 5.5, 6.5, 17, 18.5, 19, 20, 24, }; diff --git a/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/MoonLayer.java b/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/MoonLayer.java index f8a55f2..1030f98 100644 --- a/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/MoonLayer.java +++ b/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/MoonLayer.java @@ -44,6 +44,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * @author Tomaso2468 * */ +@Deprecated public abstract class MoonLayer implements SkyLayer { /** * A sun color generator. diff --git a/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/SunLayer.java b/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/SunLayer.java index 21be416..f62fae6 100644 --- a/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/SunLayer.java +++ b/RPGOnline2/src/io/github/tomaso2468/rpgonline/sky/SunLayer.java @@ -44,6 +44,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * @author Tomaso2468 * */ +@Deprecated public abstract class SunLayer implements SkyLayer { /** * A sun color generator.