@author tag, license
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
Copyright (c) 2013, Ondřej Hruška (MightyPork), <ondra@ondrovo.com>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* HSV color
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class HSV {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* RGB color
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class RGB {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Coordinate class, object with three or two double coordinates.<br>
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Coord {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ package com.porcupine.coord;
|
||||
* Simple integer coordinate class<br>
|
||||
* Unlike Coord, this is suitable for using in array indices etc.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class CoordI {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Rectangle determined by two coordinates - min and max.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Rect {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.coord;
|
||||
/**
|
||||
* Vector in 2D/3D space.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Vec extends Coord {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.ArrayList;
|
||||
/**
|
||||
* Ionizable Arraylist
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @param <T>
|
||||
*/
|
||||
public abstract class AbstractIonList<T> extends ArrayList<T> implements Ionizable {
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.LinkedHashMap;
|
||||
/**
|
||||
* Ionizable HashMap
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @param <V>
|
||||
*/
|
||||
public abstract class AbstractIonMap<V> extends LinkedHashMap<String, V> implements Ionizable {
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Universal data storage system
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Ion {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.ArrayList;
|
||||
/**
|
||||
* Ionizable Arraylist
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class IonList extends ArrayList<Object> implements Ionizable {
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.Map.Entry;
|
||||
/**
|
||||
* Ionizable HashMap
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class IonMap extends LinkedHashMap<String, Object> implements Ionizable {
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.ion;
|
||||
/**
|
||||
* Byte marks used to structure data in Ion files.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class IonMarks {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.io.OutputStream;
|
||||
* All classes implementing Ionizable must be registered to {@link Ion} using
|
||||
* Ion.registerIonizable(obj.class).
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface Ionizable {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.ion;
|
||||
/**
|
||||
* Optional ionizable
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IonizableOptional extends Ionizable {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.nio.ByteBuffer;
|
||||
/**
|
||||
* Utilities to store and load objects to streams.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
|
||||
@SuppressWarnings("javadoc")
|
||||
|
||||
@@ -15,7 +15,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Math helper
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Calc {
|
||||
|
||||
@@ -129,7 +129,7 @@ public class Calc {
|
||||
/**
|
||||
* Calc subclass with buffer utils.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Buffers {
|
||||
|
||||
@@ -174,7 +174,7 @@ public class Calc {
|
||||
/**
|
||||
* Angle calculations for degrees.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Deg {
|
||||
|
||||
@@ -334,7 +334,7 @@ public class Calc {
|
||||
/**
|
||||
* Angle calculations for radians.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Rad {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Polar coordinate
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Polar {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.math.Calc.Rad;
|
||||
/**
|
||||
* Polar coordinate in degrees
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PolarDeg {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import java.util.Random;
|
||||
/**
|
||||
* Numeric range, able to generate random numbers and give min/max values.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Range {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.mutable;
|
||||
/**
|
||||
* Mutable object
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @param <T> type
|
||||
*/
|
||||
public abstract class AbstractMutable<T> {
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.mutable;
|
||||
/**
|
||||
* Mutable boolean
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class MBoolean extends AbstractMutable<Boolean> {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.mutable;
|
||||
/**
|
||||
* Mutable double
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class MDouble extends AbstractMutable<Double> {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.mutable;
|
||||
/**
|
||||
* Mutable float
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class MFloat extends AbstractMutable<Float> {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.mutable;
|
||||
/**
|
||||
* Mutable integer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class MInt extends AbstractMutable<Integer> {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.mutable;
|
||||
/**
|
||||
* Mutable string
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class MString extends AbstractMutable<String> {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Structure of 2 objects.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
* @param <T1> 1st object class
|
||||
* @param <T2> 2nd object class
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Structure of 3 objects.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
* @param <T1> 1st object class
|
||||
* @param <T2> 2nd object class
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Structure of 4 objects.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
* @param <T1> 1st object class
|
||||
* @param <T2> 2nd object class
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Structure of 5 objects.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
* @param <T1> 1st object class
|
||||
* @param <T2> 2nd object class
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Structure of 6 objects.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
* @param <T1> 1st object class
|
||||
* @param <T2> 2nd object class
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Structure of 7 objects.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
* @param <T1> 1st object class
|
||||
* @param <T2> 2nd object class
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Structure of 7 objects.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
* @param <T1> 1st object class
|
||||
* @param <T2> 2nd object class
|
||||
|
||||
@@ -5,7 +5,7 @@ package com.porcupine.time;
|
||||
* Class for counting FPS in games.<br>
|
||||
* This class can be used also as a simple frequency meter - output is in Hz.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FpsMeter {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.time;
|
||||
/**
|
||||
* Timer for delta timing
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TimerDelta {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.time;
|
||||
/**
|
||||
* Timer for interpolated timing
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TimerInterpolating {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import java.io.FileFilter;
|
||||
/**
|
||||
* File filter for certain suffixes
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FileSuffixFilter implements FileFilter {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import net.tortuga.util.Log;
|
||||
/**
|
||||
* Utilities for filesystem
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FileUtils {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import com.porcupine.math.Calc;
|
||||
* Methods starting with put are for filling. Most of the others are shortcuts
|
||||
* to getters.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PropertyManager {
|
||||
|
||||
@@ -25,7 +25,7 @@ public class PropertyManager {
|
||||
* newlines can be inserted to separate categories, and individual keys can
|
||||
* have their own inline comments.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
*/
|
||||
private static class PC_SortedProperties extends Properties {
|
||||
@@ -335,7 +335,7 @@ public class PropertyManager {
|
||||
/**
|
||||
* Property entry in Property manager.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
*/
|
||||
private class Property {
|
||||
@@ -602,7 +602,7 @@ public class PropertyManager {
|
||||
/**
|
||||
* Property type enum.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
*/
|
||||
private enum PropertyType
|
||||
|
||||
@@ -4,7 +4,7 @@ package com.porcupine.util;
|
||||
/**
|
||||
* General purpose string utilities
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class StringUtils {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.LinkedHashMap;
|
||||
* Map<String, Integer> args = new VarargsParser<String, Integer>().parse(array);
|
||||
* </pre>
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @param <K> Type for Map keys
|
||||
* @param <V> Type for Map values
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,7 @@ import com.porcupine.util.FileUtils;
|
||||
/**
|
||||
* SECTOR main class
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class App {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Sector constants
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class Constants {
|
||||
|
||||
@@ -17,7 +17,7 @@ import com.porcupine.ion.Ion;
|
||||
/**
|
||||
* Class adding ION marks for custom ionizable objects
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class CustomIonMarks {
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.util.PropertyManager;
|
||||
/**
|
||||
* Configuration
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class GameConfig {
|
||||
|
||||
@@ -10,7 +10,7 @@ import net.tortuga.util.Log;
|
||||
/**
|
||||
* Class responsible for resource loading.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class LoadingManager {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import net.tortuga.level.program.StoneRegistry;
|
||||
* Initialization utility, initializing all the static stuff that is needed
|
||||
* before starting main loop.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class StaticInitializer {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.lwjgl.input.Keyboard;
|
||||
|
||||
|
||||
/**
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ThreadScreenshotTrigger extends Thread {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.tortuga.animations;
|
||||
/**
|
||||
* Empty animation (no effect)
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EmptyAnimator implements IRenderer {
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Map water animator
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class WaterAnimator implements IRenderer {
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ package net.tortuga.annotations;
|
||||
* Used where private is not possible, but public does not mean available for
|
||||
* anyone.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public @interface Internal {}
|
||||
|
||||
@@ -4,6 +4,6 @@ package net.tortuga.annotations;
|
||||
/**
|
||||
* Describes an incomplete method or class
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public @interface NeedsOverride {}
|
||||
|
||||
@@ -4,6 +4,6 @@ package net.tortuga.annotations;
|
||||
/**
|
||||
* Marks unimplemented method, which is not abstract.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public @interface Unimplemented {}
|
||||
|
||||
@@ -5,6 +5,6 @@ package net.tortuga.annotations;
|
||||
* Annotation for apparently unused methods, to indicate that they can be safely
|
||||
* removed when preparing the game for final release
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public @interface Unused {}
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Remade universal font manager for Sector.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FontManager {
|
||||
|
||||
@@ -25,7 +25,7 @@ public class FontManager {
|
||||
/**
|
||||
* Glyph tables.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Glyphs {
|
||||
|
||||
@@ -79,7 +79,7 @@ public class FontManager {
|
||||
/**
|
||||
* Font style
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static enum Style
|
||||
{
|
||||
@@ -116,7 +116,7 @@ public class FontManager {
|
||||
/**
|
||||
* Preloaded font identifier [name, size, style]
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class FontId {
|
||||
|
||||
@@ -207,7 +207,7 @@ public class FontManager {
|
||||
/**
|
||||
* Group of styles of one font.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class FontFamily extends HashMap<Style, String> {
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Panel class, control module for screen.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class Panel implements IInputHandler, IRenderer {
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import com.porcupine.color.RGB;
|
||||
/**
|
||||
* Overlay panel for paused game.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelConfig extends PanelGui {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.tortuga.gui.screens.Screen;
|
||||
/**
|
||||
* Empty do-nothing panel, used in Screens with no Gui instead of NULL.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelEmpty extends Panel {
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Game panel
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelGame extends PanelGui {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import net.tortuga.textures.Tx;
|
||||
/**
|
||||
* Main menu panel
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelMenu extends PanelGui {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import com.porcupine.color.RGB;
|
||||
/**
|
||||
* Splash panel
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelSplash extends PanelGui {
|
||||
|
||||
|
||||
@@ -21,14 +21,14 @@ import com.porcupine.color.RGB;
|
||||
/**
|
||||
* Main menu panel
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelDialogModal extends PanelGui {
|
||||
|
||||
/**
|
||||
* Dialog click handler
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IDialogListener {
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import com.porcupine.coord.Vec;
|
||||
* Screen animates 3D world, while contained panels render 2D overlays, process
|
||||
* inputs and run the game logic.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class Screen implements IRenderer {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* main menu screen
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ScreenGame extends Screen {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* main menu screen
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ScreenMenuMain extends Screen {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Splash screen
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ScreenSplash extends Screen {
|
||||
|
||||
|
||||
@@ -23,14 +23,14 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Root widget, container of layouts
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class GuiRoot implements Comparable<GuiRoot> {
|
||||
|
||||
/**
|
||||
* Widget event listener
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static interface EventListener {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.tortuga.gui.widgets;
|
||||
/**
|
||||
* Scrollable element
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IScrollable {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.tortuga.gui.widgets;
|
||||
/**
|
||||
* Scrollable element
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IScrollbar {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* GUI widget interface
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IWidget {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.tortuga.gui.widgets;
|
||||
/**
|
||||
* Set of 4 numbers for sides (left, right, top, bottom)
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class LeftTopRightBottom {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Abstract widget class
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class Widget implements IWidget, Comparable<Widget> {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import com.porcupine.coord.Coord;
|
||||
* Drag'n'Drop server widget (should be placed below all widgets that use it) -
|
||||
* handles dragging and rendering.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class DragDropServer extends Widget {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.tortuga.gui.widgets.composite;
|
||||
/**
|
||||
* Drag'n'drop stone
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IDragSlot {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Program shop slot
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class PgmShopBase extends Widget implements IDragSlot {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Space
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ColorRectange extends Widget {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.coord.CoordI;
|
||||
/**
|
||||
* Icon 32x32 from texture sheet
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Icon extends Widget {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Image from texture
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Image extends Widget {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.coord.CoordI;
|
||||
/**
|
||||
* Passive text label
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Text extends Widget {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Passive text label
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TextDouble extends Widget {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Clickable button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Button extends Widget {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Button with icon
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ButtonIcon extends Button {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Vertical (left tab) button
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ButtonVertical extends Button {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Clcikable button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Checkbox extends Widget {
|
||||
|
||||
|
||||
@@ -15,14 +15,14 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Radio button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class RadioButton extends Checkbox {
|
||||
|
||||
/**
|
||||
* Radio group.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class RadioGroup extends HashSet<RadioButton> {
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Clcikable button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class ScrollbarBase extends Widget implements IScrollbar {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Horizontal scrollbar
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ScrollbarH extends ScrollbarBase {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Clcikable button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ScrollbarV extends ScrollbarBase {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Clcikable button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Slider extends Widget {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Clcikable button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class SliderGalvanic extends Slider {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.util.StringUtils;
|
||||
/**
|
||||
* Clcikable button.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TextInput extends Widget {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Space
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class AmbRenderer extends Widget {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Frame for widgets (with shadow and border + background)
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FullWidthLayout extends Widget implements IRefreshable {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Space
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Gap extends Widget {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Base for layouts.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class LayoutBase extends Widget {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Horizontal layout widget
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class LayoutH extends LayoutBase {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Vertical layout widget
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class LayoutV extends LayoutBase {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Horizontal scrolling layout
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ScrollingLayoutH extends LayoutH implements IScrollable {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Frame for widgets (with shadow and border + background)
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class FrameBase extends Widget {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Frame for widgets (with shadow and border + background)
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FrameBelt extends FrameBase {
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user