Initial commit
This commit is contained in:
9
src/main/java/gg/malloc/defense/model/Arena.java
Normal file
9
src/main/java/gg/malloc/defense/model/Arena.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package gg.malloc.defense.model;
|
||||
|
||||
import org.bukkit.World;
|
||||
|
||||
public interface Arena {
|
||||
World getWorld();
|
||||
String name();
|
||||
Spawnpoint[] spawnpoints();
|
||||
}
|
||||
6
src/main/java/gg/malloc/defense/model/Game.java
Normal file
6
src/main/java/gg/malloc/defense/model/Game.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package gg.malloc.defense.model;
|
||||
|
||||
public interface Game {
|
||||
int getWaveCount();
|
||||
Wave getWave(int waveNumber);
|
||||
}
|
||||
8
src/main/java/gg/malloc/defense/model/Spawner.java
Normal file
8
src/main/java/gg/malloc/defense/model/Spawner.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package gg.malloc.defense.model;
|
||||
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Entity;
|
||||
|
||||
public interface Spawner {
|
||||
Entity spawnMob(EntityType type);
|
||||
}
|
||||
9
src/main/java/gg/malloc/defense/model/Spawnpoint.java
Normal file
9
src/main/java/gg/malloc/defense/model/Spawnpoint.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package gg.malloc.defense.model;
|
||||
|
||||
import org.bukkit.Location;
|
||||
|
||||
public interface Spawnpoint {
|
||||
Location getLocation();
|
||||
String getName();
|
||||
String getID();
|
||||
}
|
||||
7
src/main/java/gg/malloc/defense/model/Wave.java
Normal file
7
src/main/java/gg/malloc/defense/model/Wave.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package gg.malloc.defense.model;
|
||||
|
||||
public interface Wave {
|
||||
int batchCount();
|
||||
int totalMobCount();
|
||||
void spawnBatch(Spawner spawner, int batch);
|
||||
}
|
||||
Reference in New Issue
Block a user