AdventureEditor: added editors

This commit is contained in:
Grimm
2022-06-10 23:25:45 +02:00
parent d2338261fd
commit cdd72d138b
15 changed files with 699 additions and 135 deletions

View File

@@ -15,7 +15,6 @@ import java.util.Random;
* contains the information for the biomes
*/
public class BiomeData implements Serializable {
private final Random rand = MyRandom.getRandom();
public float startPointX;
public float startPointY;
public float noiseWeight;
@@ -35,6 +34,7 @@ public class BiomeData implements Serializable {
private ArrayList<EnemyData> enemyList;
private ArrayList<PointOfInterestData> pointOfInterestList;
private final Random rand = MyRandom.getRandom();
public Color GetColor() {
return Color.valueOf(color);
}

View File

@@ -16,4 +16,16 @@ public class BiomeTerrainData {
// factor for the noise resolution
public float resolution;
public BiomeTerrainData()
{
}
public BiomeTerrainData(BiomeTerrainData other)
{
spriteName=other.spriteName;
min=other.min;
max=other.max;
resolution=other.resolution;
}
}

View File

@@ -42,4 +42,18 @@ public class PointOfInterestData {
}
return null;
}
public PointOfInterestData()
{
}
public PointOfInterestData(PointOfInterestData other)
{
name=other.name;
type=other.type;
count=other.count;
spriteAtlas=other.spriteAtlas;
sprite=other.sprite;
map=other.map;
radiusFactor=other.radiusFactor;
}
}

View File

@@ -17,19 +17,22 @@ import java.util.List;
*/
public class WorldData implements Serializable {
static Array<EnemyData> allEnemies;
public int width;
public int height;
public float playerStartPosX;
public float playerStartPosY;
public float noiseZoomBiome;
public int tileSize;
public List<String> biomesNames;
public BiomeData roadTileset;
public String biomesSprites;
public float maxRoadDistance;
public List<String> biomesNames;
private BiomeSprites sprites;
private List<BiomeData> biomes;
private static Array<EnemyData> allEnemies;
private static Array<ShopData> shopList;