improved @author mark
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 {
|
||||
|
||||
@@ -122,7 +122,7 @@ public class Calc {
|
||||
/**
|
||||
* Calc subclass with buffer utils.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Buffers {
|
||||
|
||||
@@ -162,7 +162,7 @@ public class Calc {
|
||||
/**
|
||||
* Angle calculations for degrees.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Deg {
|
||||
/** 180° in degrees */
|
||||
@@ -299,7 +299,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.sector.util.Log;
|
||||
/**
|
||||
* Utilities for filesystem
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FileUtils {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.lwjgl.input.Keyboard;
|
||||
* 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 {
|
||||
/**
|
||||
@@ -22,7 +22,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 {
|
||||
@@ -317,7 +317,7 @@ public class PropertyManager {
|
||||
/**
|
||||
* Property entry in Property manager.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
* @copy (c) 2012
|
||||
*/
|
||||
private class Property {
|
||||
@@ -537,7 +537,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
|
||||
*/
|
||||
|
||||
@@ -49,7 +49,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 {
|
||||
|
||||
@@ -12,7 +12,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 {
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.util.PropertyManager;
|
||||
/**
|
||||
* Configuration
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
@SuppressWarnings("javadoc")
|
||||
public class GameConfig {
|
||||
|
||||
@@ -12,7 +12,7 @@ import net.sector.util.Log;
|
||||
/**
|
||||
* Class responsible for resource loading.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class LoadingManager {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import net.sector.util.Log;
|
||||
* 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 {
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ package net.sector.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 {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ package net.sector.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 {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import com.porcupine.coord.Coord;
|
||||
* Collider object, used to hold information about object positions, rotations
|
||||
* and to detect their collisions.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class Collider {
|
||||
/** Central point */
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Player ship collider (made up of pieces)
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ColliderPlayerShip extends ColliderSphere {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Simple spheric collider
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ColliderSphere extends Collider {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Sphere collider, never colliding
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ColliderSphereFake extends ColliderSphere {
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import com.porcupine.util.StringUtils;
|
||||
/**
|
||||
* 2D collider map with Z-axis zones
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Scene {
|
||||
|
||||
@@ -73,7 +73,7 @@ public class Scene {
|
||||
/**
|
||||
* Zone of entities within this collider.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
private class ColliderZone extends HashSet<Entity> {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.sector.effects;
|
||||
/**
|
||||
* Enum particle types
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public enum EParticle {
|
||||
/** fire */
|
||||
|
||||
@@ -16,7 +16,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Effects helper
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class Effects {
|
||||
/** RNG */
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.coord.Vec;
|
||||
* Particle manager, container and animator of particles.<br>
|
||||
* It extends HashSet, so you can simply use add(particle) to add new effect.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleManager extends ArrayList<Particle> {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Particle pseudo-entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class Particle implements Comparable<Particle> {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* "Binary" particle (animated green 0s and 1s in splash screen)
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleBinary extends Particle {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* "EMP" particle
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleEMP extends Particle {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Fire / explode particle
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleFire extends Particle {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* "EMP" particle
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleOrb extends Particle {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Shard (explosion) particle
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleShard extends Particle {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Smoke particle
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleSmoke extends Particle {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Experimental (= ugly) star particle
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleStar extends Particle {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Binary particle renderer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleBinaryRenderer extends ParticleRendererPlain {
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Fire particle renderer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleEMPRenderer extends ParticleRendererBlend {
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Fire particle renderer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleFireRenderer extends ParticleRendererBlend {
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* orb particle renderer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleOrbRenderer extends ParticleRendererBlend {
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,7 @@ import com.porcupine.coord.Coord;
|
||||
* Only one instance of this renderer is made, and is later held in
|
||||
* ParticleManager.renderers
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class ParticleRenderer {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Particle renderer BLEND (black image with colors).
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class ParticleRendererBlend extends ParticleRenderer {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Particle renderer PLAIN.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class ParticleRendererPlain extends ParticleRenderer {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Shard particle renderer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleShardRenderer extends ParticleRendererPlain {
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Smoke particle renderer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleSmokeRenderer extends ParticleRendererPlain {
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Star particle renderer
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class ParticleStarRenderer extends ParticleRendererPlain {
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.sector.entities;
|
||||
/**
|
||||
* Entity type
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public enum EEntity {
|
||||
/** Shot, bullet, rocket etc. by aliens */
|
||||
|
||||
@@ -24,7 +24,7 @@ import com.porcupine.math.Calc;
|
||||
* Entity object: something that moves, reacts to collisions and does other cool
|
||||
* stuff.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class Entity implements IPhysEntity, Comparable<Entity> {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.porcupine.math.PolarDeg;
|
||||
/**
|
||||
* Navigable entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class EntityNavigable extends Entity implements INavigated {
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Entity interface for physics calculations
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IPhysEntity extends IDamageable {
|
||||
public Coord getPos();
|
||||
|
||||
@@ -4,7 +4,7 @@ package net.sector.entities;
|
||||
/**
|
||||
* This be an interface for player's ship, which counts score.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface IScoreCounter {
|
||||
/**
|
||||
|
||||
@@ -22,7 +22,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Mine entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityMine extends EntityNavigable {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Enemy ship entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityShipBird extends EntityNavigable {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Enemy burger entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityShipBurger extends EntityNavigable {
|
||||
private static PhysModel burgerModel = Models.enemyBurger;
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Enemy burger entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityShipBurgerKing extends EntityNavigable {
|
||||
private static PhysModel burgerModel = Models.enemyBurgerKing;
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Enemy cube entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityShipCube extends EntityNavigable {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Enemy ship entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityShipFalcon extends EntityNavigable {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Enemy ship entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityShipFighter extends EntityNavigable {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.coord.Vec;
|
||||
/**
|
||||
* Enemy ship entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityShipShark extends EntityNavigable {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Asteroid entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityAsteroid extends EntityNatural {
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import com.porcupine.math.Calc;
|
||||
/**
|
||||
* Player ship entity
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class EntityPlayerShip extends Entity implements IScoreCounter, IInputHandler {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import com.porcupine.math.Polar;
|
||||
/**
|
||||
* Base for all shots
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public abstract class EntityShotBase extends Entity {
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Remade universal font manager for Sector.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class FontManager {
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FontManager {
|
||||
/**
|
||||
* Glyph tables.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class Glyphs {
|
||||
//@formatter:off
|
||||
@@ -82,7 +82,7 @@ public class FontManager {
|
||||
/**
|
||||
* Font style
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static enum Style {
|
||||
/** Normal */
|
||||
@@ -118,7 +118,7 @@ public class FontManager {
|
||||
/**
|
||||
* Preloaded font identifier [name, size, style]
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public static class FontId {
|
||||
/** font size (pt) */
|
||||
@@ -201,7 +201,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> {}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.porcupine.color.RGB;
|
||||
/**
|
||||
* Colors used in all highscore tables
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class HsColors {
|
||||
/** Score number */
|
||||
|
||||
@@ -19,7 +19,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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import net.sector.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 {
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import net.sector.util.Log;
|
||||
/**
|
||||
* Main menu panel
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelMenu extends PanelGui {
|
||||
private static final int EXIT = 0;
|
||||
|
||||
@@ -18,7 +18,7 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Splash panel
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelSplash extends Panel {
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ import com.porcupine.util.StringUtils;
|
||||
/**
|
||||
* Main menu panel
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelDesigner extends PanelGui {
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ import com.porcupine.coord.Coord;
|
||||
/**
|
||||
* Capture input dialog - set controls
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelDialogCaptureInput extends PanelGui {
|
||||
/**
|
||||
* Dialog click handler
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public interface ICaptureInputDialogListener {
|
||||
/**
|
||||
|
||||
@@ -23,14 +23,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 {
|
||||
/**
|
||||
|
||||
@@ -37,7 +37,7 @@ import com.porcupine.util.StringUtils;
|
||||
/**
|
||||
* panel animating the 3D game
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelGame extends Panel {
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ import com.porcupine.util.StringUtils;
|
||||
/**
|
||||
* Game over screen for Shared levels and registered user.
|
||||
*
|
||||
* @author MightyPork
|
||||
* @author Ondřej Hruška (MightyPork)
|
||||
*/
|
||||
public class PanelGameOverShared_User extends PanelGui {
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user