author tag, license
This commit is contained in:
@@ -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 {
|
||||
/** Zero 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 {
|
||||
|
||||
@@ -117,7 +117,7 @@ public class Calc {
|
||||
/**
|
||||
* Calc subclass with buffer utils.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Buffers {
|
||||
|
||||
@@ -157,7 +157,7 @@ public class Calc {
|
||||
/**
|
||||
* Angle calculations for degrees.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Deg {
|
||||
/** 180° in degrees */
|
||||
@@ -294,7 +294,7 @@ public class Calc {
|
||||
/**
|
||||
* Angle calculations for radians.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Rad {
|
||||
/** 180° in radians */
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Polar coordinate
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Polar {
|
||||
/** angle in radians */
|
||||
|
||||
@@ -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 {
|
||||
/** angle in degrees */
|
||||
|
||||
@@ -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 {
|
||||
private double min = 0;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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.spritegen.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 {
|
||||
/**
|
||||
@@ -24,7 +24,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 {
|
||||
@@ -319,7 +319,7 @@ public class PropertyManager {
|
||||
/**
|
||||
* Property entry in Property manager.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
*/
|
||||
private class Property {
|
||||
@@ -565,7 +565,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 {
|
||||
|
||||
|
||||
@@ -14,7 +14,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
|
||||
*/
|
||||
|
||||
@@ -38,7 +38,7 @@ import com.porcupine.util.FileUtils;
|
||||
/**
|
||||
* SECTOR main class
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class App {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Sector constants
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class Constants {
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.mykaruga.models.Models;
|
||||
* 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 {
|
||||
|
||||
|
||||
@@ -19,7 +19,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{
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import static org.lwjgl.util.glu.GLU.*;
|
||||
/**
|
||||
* Splash screen
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ScreenSprites extends Screen {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import org.newdawn.slick.util.ResourceLoader;
|
||||
/**
|
||||
* Texture manager
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class TextureManager {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import net.spritegen.Constants;
|
||||
/**
|
||||
* Sector static logger class.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
*/
|
||||
public class Log {
|
||||
@@ -254,7 +254,7 @@ public class Log {
|
||||
/**
|
||||
* PowerCraft Log file formatter.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
*/
|
||||
private static class LogFormatter extends Formatter {
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.porcupine.math.Range;
|
||||
* Utility for converting Object to data types; Can also convert strings to data
|
||||
* types.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ObjParser {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.coord.Rect;
|
||||
/**
|
||||
* Render utilities
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class RenderUtils {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import com.porcupine.util.FileUtils;
|
||||
/**
|
||||
* Sector's utils class
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Utils {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user