Skip to content

Commit a813f41

Browse files
authored
Merge pull request #175 from jCodingStuff/Julian
Javadoc advances
2 parents 3d915a3 + 9ecf669 commit a813f41

File tree

8 files changed

+9
-6
lines changed

8 files changed

+9
-6
lines changed

core/src/com/group/golf/Physics/Collision.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public boolean ballInWater() {
259259

260260
/**
261261
* Get access to the ball instance being handled
262-
* @return
262+
* @return the instance of ball
263263
*/
264264
public Ball getBall() {
265265
return ball;

core/src/com/group/golf/Physics/Physics.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public Physics(Physics other) {
6060

6161
/**
6262
* Hit the ball
63+
* @param ball the ball to hit
6364
* @param xLength the length that the mouse was dragged horizontally
6465
* @param yLength the length that the mouse was dragged vertically
6566
*/
@@ -268,7 +269,7 @@ public void setWalls(List<Rectangle> walls) {
268269

269270
/**
270271
* Get access to the Collision instance managed by the physics engine
271-
* @return
272+
* @return the collision instance
272273
*/
273274
public Collision getCollision() {
274275
return collision;

core/src/com/group/golf/genetics/InverseScoreComputer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* Class InverseScoreComputer computes fitness for simple courses
8-
* @auther Julian Marrades
8+
* @author Julian Marrades
99
*/
1010
public class InverseScoreComputer implements ScoreComputer {
1111

core/src/com/group/golf/genetics/Mutation.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* An interface for mutation algorithms
5-
* @auther Julian Marrades
5+
* @author Julian Marrades
66
*/
77
public interface Mutation {
88

core/src/com/group/golf/genetics/SimpleCrossOver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* Simple crossover algorithm
8-
* @auther Julian Marrades
8+
* @author Julian Marrades
99
*/
1010
public class SimpleCrossOver implements CrossOver {
1111

core/src/com/group/golf/genetics/SwapMutation.java

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/**
66
* Mutation that swaps the order of two movements
7+
* @author Julian Marrades
78
*/
89
public class SwapMutation implements Mutation {
910

core/src/com/group/golf/listeners/SplineMode1Listener.java

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class SplineMode1Listener extends ChangeListener {
3737
* Create a new Mode1Listener
3838
* @param game the Golf instance
3939
* @param screen the Screen instance
40+
* @param computable the computable array of splines
4041
* @param txtStartPos the TextField containing the Start Coordinates
4142
* @param txtGoalPos the TextField containing the Goal Coordinates
4243
* @param txtRadius the TextField containing the tolerance

core/src/com/group/golf/math/MathLib.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public static float distanceSquared(Point3D a, Point3D b) {
144144
* Get a random float value within a range
145145
* @param low lower bound of the range
146146
* @param high upper bound of the range
147-
* @return a random float x such that low <= x < high
147+
* @return a random float x between low (including) and high (excluding)
148148
*/
149149
public static float randomFloat(float low, float high) {
150150
return (float)(Math.random()*(high - low) + low);

0 commit comments

Comments
 (0)