Skip to content

Library to load objects produced by the python lands project (a world generator)

License

Notifications You must be signed in to change notification settings

ftomassetti/lands-java-lib

Repository files navigation

lands-java-lib

Build Status

Library to load objects produced by the python lands project (a world generator).

It also wrap langgen to make accessible to Java. Through that project we can generate languages.

This is needed to integrate lands with Java/Clojure libraries.

The plan is to reuse Java libraries for erosion, like procedurality-lands and develop AI for Civs simulation in Clojure (possibly using core.logic).

How to get it

Code is available here, if you want just to add to your project and use the library go ahead.

Maven:

<dependency>
  <groupId>com.github.lands</groupId>
  <artifactId>lands-java-lib</artifactId>
  <version>0.3-SNAPSHOT</version>
</dependency>

Leiningen:

[com.github.lands/lands-java-lib "0.3-SNAPSHOT"]

How to generate languages and names

You can ask the library to mix the samples it can with and just give you a language:

Language myLanguage = SamplesBasedLanguageFactory.getRandomLanguage();

Or you can provide you own list of samples to get similar names:

List<String> samples = new ArrayList<>;
samples.add("Camille");
samples.add("Marianne");
samples.add("Benoit");
Language myLanguage = new Language(samples);

Once you have a language you can very easily generate names:

String myGenerayedName = language.name();

About

Library to load objects produced by the python lands project (a world generator)

Resources

License

Stars

Watchers

Forks

Packages

No packages published