|
|
@ -2,7 +2,16 @@ package mightypork.rogue.world.level; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
import java.util.*; |
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Collection; |
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.Comparator; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
import java.util.HashSet; |
|
|
|
|
|
|
|
import java.util.LinkedList; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
|
|
import mightypork.rogue.world.World; |
|
|
|
import mightypork.rogue.world.World; |
|
|
|
import mightypork.rogue.world.entity.Entities; |
|
|
|
import mightypork.rogue.world.entity.Entities; |
|
|
@ -13,7 +22,6 @@ import mightypork.rogue.world.item.Item; |
|
|
|
import mightypork.rogue.world.tile.Tile; |
|
|
|
import mightypork.rogue.world.tile.Tile; |
|
|
|
import mightypork.rogue.world.tile.TileModel; |
|
|
|
import mightypork.rogue.world.tile.TileModel; |
|
|
|
import mightypork.rogue.world.tile.Tiles; |
|
|
|
import mightypork.rogue.world.tile.Tiles; |
|
|
|
import mightypork.utils.eventbus.EventBus; |
|
|
|
|
|
|
|
import mightypork.utils.eventbus.clients.DelegatingClient; |
|
|
|
import mightypork.utils.eventbus.clients.DelegatingClient; |
|
|
|
import mightypork.utils.eventbus.clients.ToggleableClient; |
|
|
|
import mightypork.utils.eventbus.clients.ToggleableClient; |
|
|
|
import mightypork.utils.interfaces.Updateable; |
|
|
|
import mightypork.utils.interfaces.Updateable; |
|
|
@ -101,11 +109,13 @@ public class Level implements Updateable, DelegatingClient, ToggleableClient, Io |
|
|
|
private double timeSinceLastEntitySort; |
|
|
|
private double timeSinceLastEntitySort; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Level() { |
|
|
|
public Level() |
|
|
|
|
|
|
|
{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Level(int width, int height) { |
|
|
|
public Level(int width, int height) |
|
|
|
|
|
|
|
{ |
|
|
|
size.setTo(width, height); |
|
|
|
size.setTo(width, height); |
|
|
|
buildArray(); |
|
|
|
buildArray(); |
|
|
|
} |
|
|
|
} |
|
|
|