[SOON] New PlotManager hierarchy.

This commit is contained in:
boy0001 2015-02-10 21:56:04 +11:00
parent a8915ca870
commit e508ac5462
5 changed files with 28 additions and 1 deletions

View File

@ -64,6 +64,7 @@ public class Unclaim extends SubCommand {
final boolean result = PlotMain.removePlot(plr.getWorld().getName(), plot.id, true);
if (result) {
DBFunc.delete(plr.getWorld().getName(), plot);
// TODO set wall block
} else {
PlayerFunctions.sendMessage(plr, "Plot removal has been denied.");
}

View File

@ -0,0 +1,8 @@
package com.intellectualcrafters.plot.generator;
/**
* A plot manager with square plots which tesselate on a square grid with the following sections: ROAD, WALL, BORDER (wall), PLOT, FLOOR (plot)
*/
public abstract class ClassicPlotManager extends SquarePlotManager {
}

View File

@ -0,0 +1,10 @@
package com.intellectualcrafters.plot.generator;
import com.intellectualcrafters.plot.object.PlotManager;
/**
* A plot manager where plots tessellate in a grid formation symmetrical about x=z
*/
public abstract class GridPlotManager extends PlotManager {
}

View File

@ -48,7 +48,7 @@ import com.intellectualcrafters.plot.util.PlotHelper;
import com.intellectualcrafters.plot.util.SchematicHandler;
import com.intellectualcrafters.plot.util.SendChunk;
@SuppressWarnings("deprecation") public class HybridPlotManager extends PlotManager {
@SuppressWarnings("deprecation") public class HybridPlotManager extends ClassicPlotManager {
private int task;
private static boolean UPDATE = false;

View File

@ -0,0 +1,8 @@
package com.intellectualcrafters.plot.generator;
/**
* A plot manager with a square grid layout, with square shaped plots
*/
public abstract class SquarePlotManager extends GridPlotManager {
}