mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
AdventureEditor: added editors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user