Merge pull request #336 from Major-/daction

Make immutable DistancedAction fields visible to subclasses
This commit is contained in:
Major
2017-05-26 17:44:15 +01:00
committed by GitHub
@@ -15,27 +15,27 @@ public abstract class DistancedAction<T extends Mob> extends Action<T> {
/** /**
* The delay once the threshold is reached. * The delay once the threshold is reached.
*/ */
private final int delay; protected final int delay;
/** /**
* The minimum distance before the action fires. * The minimum distance before the action fires.
*/ */
private final int distance; protected final int distance;
/** /**
* A flag indicating if this action fires immediately after the threshold is reached. * A flag indicating if this action fires immediately after the threshold is reached.
*/ */
private final boolean immediate; protected final boolean immediate;
/** /**
* The position to distance check with. * The position to distance check with.
*/ */
private final Position position; protected final Position position;
/** /**
* A flag indicating if the distance has been reached yet. * A flag indicating if the distance has been reached yet.
*/ */
private boolean reached = false; private boolean reached;
/** /**
* Creates a new DistancedAction. * Creates a new DistancedAction.