public boolean canLeaveMap () {
return canLeaveMap;
}
public boolean teleport (String transition, int transitionTime, Vector2f targetPos, String targetName, Vector2f finalDirection) {
GameMap target = null;
try {
target = World.getMap(targetName);
} catch (Exception e){
Log.error(e);
return false;
}
if (!canLeaveZone && !target.getZone().equals(map.getZone())) {
return false;
}
ArrayList<Entity> collisions = Entity.getCollisionsAt(new Rectangle(targetPos.x*16, targetPos.y*16, box.getWidth(), box.getHeight()), target);
Entity solidCollide = null;