summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-03-09 03:25:52 +0000
committerJesse Morgan <jesse@jesterpm.net>2011-03-09 03:25:52 +0000
commite3ee5607f0ec853a26851afde553019817c9d1b4 (patch)
tree9b7c8c628ead63133054c6c02a193c22f3aa9126 /src/common
parenta828212689f4601efaaad93aaad20c632d92da4c (diff)
Added serial uids
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Box.java5
-rw-r--r--src/common/Circle.java5
-rw-r--r--src/common/Earth.java4
-rw-r--r--src/common/Particle.java4
-rw-r--r--src/common/Polygon.java4
-rw-r--r--src/common/Sphere.java4
6 files changed, 26 insertions, 0 deletions
diff --git a/src/common/Box.java b/src/common/Box.java
index 5864606..2e7fba2 100644
--- a/src/common/Box.java
+++ b/src/common/Box.java
@@ -5,6 +5,11 @@ import javax.vecmath.*;
@SuppressWarnings("restriction")
public class Box extends CollidableObject {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1261388841430590087L;
+
public Box(float width, float height, float depth, Vector3f position) {
this(1, width, height, depth, position);
}
diff --git a/src/common/Circle.java b/src/common/Circle.java
index b5a3136..944a957 100644
--- a/src/common/Circle.java
+++ b/src/common/Circle.java
@@ -6,6 +6,11 @@ import javax.vecmath.*;
@SuppressWarnings("restriction")
public class Circle extends Polygon {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 936268321291207044L;
+
public Circle(float radius, Vector3f position, Vector3f normal) {
this(1, radius, position, normal);
}
diff --git a/src/common/Earth.java b/src/common/Earth.java
index 635e74c..627d9ac 100644
--- a/src/common/Earth.java
+++ b/src/common/Earth.java
@@ -6,6 +6,10 @@ import javax.vecmath.*;
@SuppressWarnings("restriction")
public class Earth extends Sphere {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 6696594698875803920L;
protected float radius;
public Earth(float radius, Vector3f position) {
diff --git a/src/common/Particle.java b/src/common/Particle.java
index f469f09..c2dad49 100644
--- a/src/common/Particle.java
+++ b/src/common/Particle.java
@@ -7,6 +7,10 @@ import javax.vecmath.*;
@SuppressWarnings("restriction")
public class Particle extends CollidableObject {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -7803518117766472366L;
protected static final float RADIUS = 0.04f;
public Particle(Color3f color, Vector3f position, Vector3f velocity) {
diff --git a/src/common/Polygon.java b/src/common/Polygon.java
index 9240e9c..47136a7 100644
--- a/src/common/Polygon.java
+++ b/src/common/Polygon.java
@@ -5,6 +5,10 @@ import javax.vecmath.*;
@SuppressWarnings("restriction")
public abstract class Polygon extends CollidableObject {
+ /**
+ *
+ */
+ private static final long serialVersionUID = 3884429316406247640L;
protected Vector3f normal;
// Right-hand side of the plane equation: Ax + By + Cz = D
protected float intercept;
diff --git a/src/common/Sphere.java b/src/common/Sphere.java
index af755d9..edabc75 100644
--- a/src/common/Sphere.java
+++ b/src/common/Sphere.java
@@ -5,6 +5,10 @@ import javax.vecmath.*;
@SuppressWarnings("restriction")
public class Sphere extends CollidableObject {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -7821415888599737442L;
protected float radius;
public Sphere(float radius, Vector3f position) {