Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Commit

Permalink
Renamed AbstractNewMovableGrid to AbstractMovableGrid to unify naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-eberle committed Apr 26, 2015
1 parent 648f892 commit 3d2a005
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import jsettlers.logic.map.newGrid.partition.manager.manageables.interfaces.IBarrack;
import jsettlers.logic.map.newGrid.partition.manager.manageables.interfaces.IDiggerRequester;
import jsettlers.logic.movable.Movable;
import jsettlers.logic.movable.interfaces.AbstractNewMovableGrid;
import jsettlers.logic.movable.interfaces.AbstractMovableGrid;
import jsettlers.logic.player.Player;
import jsettlers.logic.stack.IRequestsStackGrid;

Expand Down Expand Up @@ -63,7 +63,7 @@ public interface IBuildingsGrid {

MapObjectsManager getMapObjectsManager();

AbstractNewMovableGrid getMovableGrid();
AbstractMovableGrid getMovableGrid();

void requestDiggers(IDiggerRequester requester, byte amount);

Expand Down
6 changes: 3 additions & 3 deletions jsettlers.logic/src/jsettlers/logic/map/newGrid/MainGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
import jsettlers.logic.map.save.MapFileHeader.MapType;
import jsettlers.logic.map.save.MapList;
import jsettlers.logic.movable.Movable;
import jsettlers.logic.movable.interfaces.AbstractNewMovableGrid;
import jsettlers.logic.movable.interfaces.AbstractMovableGrid;
import jsettlers.logic.movable.interfaces.IAttackable;
import jsettlers.logic.objects.arrow.ArrowObject;
import jsettlers.logic.objects.stack.StackMapObject;
Expand Down Expand Up @@ -917,7 +917,7 @@ public boolean isInBounds(int x, int y) {
}
}

final class MovablePathfinderGrid extends AbstractNewMovableGrid {
final class MovablePathfinderGrid extends AbstractMovableGrid {
private static final long serialVersionUID = 4006228724969442801L;

private transient PathfinderGrid pathfinderGrid;
Expand Down Expand Up @@ -1415,7 +1415,7 @@ public final MapObjectsManager getMapObjectsManager() {
}

@Override
public final AbstractNewMovableGrid getMovableGrid() {
public final AbstractMovableGrid getMovableGrid() {
return movablePathfinderGrid;
}

Expand Down
6 changes: 3 additions & 3 deletions jsettlers.logic/src/jsettlers/logic/movable/Movable.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import jsettlers.logic.buildings.military.IOccupyableBuilding;
import jsettlers.logic.constants.Constants;
import jsettlers.logic.constants.MatchConstants;
import jsettlers.logic.movable.interfaces.AbstractNewMovableGrid;
import jsettlers.logic.movable.interfaces.AbstractMovableGrid;
import jsettlers.logic.movable.interfaces.AbstractStrategyGrid;
import jsettlers.logic.movable.interfaces.IAttackable;
import jsettlers.logic.movable.interfaces.IAttackableMovable;
Expand All @@ -48,7 +48,7 @@ public final class Movable implements IScheduledTimerable, IPathCalculatable, II
private static final ConcurrentLinkedQueue<Movable> allMovables = new ConcurrentLinkedQueue<Movable>();
private static int nextID = Integer.MIN_VALUE;

private final AbstractNewMovableGrid grid;
private final AbstractMovableGrid grid;
private final int id;

private EMovableState state = EMovableState.DOING_NOTHING;
Expand Down Expand Up @@ -80,7 +80,7 @@ public final class Movable implements IScheduledTimerable, IPathCalculatable, II
private transient boolean selected = false;
private transient boolean soundPlayed = false;

public Movable(AbstractNewMovableGrid grid, EMovableType movableType, ShortPoint2D position, Player player) {
public Movable(AbstractMovableGrid grid, EMovableType movableType, ShortPoint2D position, Player player) {
this.grid = grid;
this.position = position;
this.player = player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @author Andreas Eberle
*
*/
public abstract class AbstractNewMovableGrid extends AbstractStrategyGrid {
public abstract class AbstractMovableGrid extends AbstractStrategyGrid {
private static final long serialVersionUID = -236805842467532505L;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import jsettlers.logic.map.newGrid.partition.manager.manageables.IManageableWorker;
import jsettlers.logic.map.newGrid.partition.manager.materials.interfaces.IMaterialRequest;
import jsettlers.logic.movable.Movable;
import jsettlers.logic.movable.interfaces.AbstractNewMovableGrid;
import jsettlers.logic.movable.interfaces.AbstractMovableGrid;
import jsettlers.logic.movable.interfaces.IAttackable;
import jsettlers.logic.objects.stack.StackMapObject;
import jsettlers.logic.player.Player;
Expand Down Expand Up @@ -124,7 +124,7 @@ public boolean isFogOfWarVisible(int x, int y) {
public void setBackgroundListener(IGraphicsBackgroundListener backgroundListener) {
}

private final AbstractNewMovableGrid movableGrid = new AbstractNewMovableGrid() {
private final AbstractMovableGrid movableGrid = new AbstractMovableGrid() {
private static final long serialVersionUID = 610513829074598238L;

@Override
Expand Down Expand Up @@ -397,7 +397,7 @@ public boolean isValidNextPathPosition(IPathCalculatable pathCalculatable, Short

};

public AbstractNewMovableGrid getMovableGrid() {
public AbstractMovableGrid getMovableGrid() {
return movableGrid;
}

Expand Down

0 comments on commit 3d2a005

Please sign in to comment.