public class MonsterGen
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MonsterGen.Chimera
A creature that can be mixed with other Chimeras or given additional descriptors, then printed in a usable format
for game text.
|
Modifier and Type | Field and Description |
---|---|
java.lang.String[] |
adjectives |
java.lang.String[] |
components |
static MonsterGen.Chimera |
HAWK |
static MonsterGen.Chimera |
HORSE |
static MonsterGen.Chimera |
LION |
java.lang.String[] |
powerAdjectives |
java.lang.String[] |
powerPhrases |
static MonsterGen.Chimera |
SHOGGOTH |
static MonsterGen.Chimera |
SNAKE |
static StatefulRNG |
srng |
Constructor and Description |
---|
MonsterGen()
Constructs a MonsterGen with a random seed for the default RNG.
|
MonsterGen(long seed)
Constructs a MonsterGen with the given seed for the default RNG.
|
MonsterGen(java.lang.String seed)
Constructs a MonsterGen with the given seed (hashing seed with CrossHash) for the default RNG.
|
Modifier and Type | Method and Description |
---|---|
MonsterGen.Chimera |
randomize()
Randomly add appearance and power descriptors to a new Chimera creature with random body part adjectives.
|
MonsterGen.Chimera |
randomize(RNG rng,
java.lang.String newName,
int detail)
Randomly add appearance and power descriptors to a new Chimera creature with random body part adjectives.
|
MonsterGen.Chimera |
randomize(java.lang.String newName,
int detail)
Randomly add appearance and power descriptors to a new Chimera creature with random body part adjectives.
|
MonsterGen.Chimera |
randomizeAppearance(MonsterGen.Chimera creature,
java.lang.String newName,
int adjectiveCount)
Randomly add appearance descriptors to a copy of the Chimera creature.
|
MonsterGen.Chimera |
randomizeAppearance(RNG rng,
MonsterGen.Chimera creature,
java.lang.String newName,
int adjectiveCount)
Randomly add appearance descriptors to a copy of the Chimera creature.
|
MonsterGen.Chimera |
randomizePowers(MonsterGen.Chimera creature,
java.lang.String newName,
int powerCount)
Randomly add power descriptors to a copy of the Chimera creature.
|
MonsterGen.Chimera |
randomizePowers(RNG rng,
MonsterGen.Chimera creature,
java.lang.String newName,
int powerCount)
Randomly add power descriptors to a copy of the Chimera creature.
|
java.lang.String |
randomName()
Gets a random name as a String using FakeLanguageGen.
|
java.lang.String |
randomName(RNG rng)
Gets a random name as a String using FakeLanguageGen.
|
public static StatefulRNG srng
public java.lang.String[] components
public java.lang.String[] adjectives
public java.lang.String[] powerAdjectives
public java.lang.String[] powerPhrases
public static final MonsterGen.Chimera SNAKE
public static final MonsterGen.Chimera LION
public static final MonsterGen.Chimera HORSE
public static final MonsterGen.Chimera HAWK
public static final MonsterGen.Chimera SHOGGOTH
public MonsterGen()
public MonsterGen(long seed)
public MonsterGen(java.lang.String seed)
public MonsterGen.Chimera randomizeAppearance(RNG rng, MonsterGen.Chimera creature, java.lang.String newName, int adjectiveCount)
rng
- the RNG to determine random factorscreature
- the Chimera to add descriptors tonewName
- the name to call the produced ChimeraadjectiveCount
- the number of adjectives to add; may add less if some overlappublic MonsterGen.Chimera randomizeAppearance(MonsterGen.Chimera creature, java.lang.String newName, int adjectiveCount)
creature
- the Chimera to add descriptors tonewName
- the name to call the produced ChimeraadjectiveCount
- the number of adjectives to add; may add less if some overlappublic MonsterGen.Chimera randomizePowers(RNG rng, MonsterGen.Chimera creature, java.lang.String newName, int powerCount)
rng
- the RNG to determine random factorscreature
- the Chimera to add descriptors tonewName
- the name to call the produced ChimerapowerCount
- the number of adjectives to add; may add less if some overlappublic MonsterGen.Chimera randomizePowers(MonsterGen.Chimera creature, java.lang.String newName, int powerCount)
creature
- the Chimera to add descriptors tonewName
- the name to call the produced ChimerapowerCount
- the number of adjectives to add; may add less if some overlappublic MonsterGen.Chimera randomize(RNG rng, java.lang.String newName, int detail)
rng
- the RNG to determine random factorsnewName
- the name to call the produced Chimeradetail
- the number of adjectives and phrases to add, also the number of body partspublic MonsterGen.Chimera randomize(java.lang.String newName, int detail)
newName
- the name to call the produced Chimeradetail
- the number of adjectives and phrases to add, also the number of body partspublic MonsterGen.Chimera randomize()
public java.lang.String randomName(RNG rng)
rng
- the RNG to use for random factorspublic java.lang.String randomName()
Copyright © Eben Howard 2012–2022. All rights reserved.