public static class MonsterGen.Chimera
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
mainForm |
java.lang.String |
name |
OrderedMap<java.lang.String,java.util.List<java.lang.String>> |
parts |
OrderedSet<java.lang.String> |
powerAdjectives |
OrderedSet<java.lang.String> |
powerPhrases |
java.lang.String |
unknown |
OrderedSet<java.lang.String> |
unsaidAdjectives |
OrderedSet<java.lang.String> |
wholeAdjectives |
Constructor and Description |
---|
Chimera(java.lang.String name,
MonsterGen.Chimera other)
Copies an existing Chimera other into a new Chimera with potentially a different name.
|
Chimera(java.lang.String name,
java.lang.String unknown,
java.util.Collection<java.lang.String> parts,
java.util.Collection<java.lang.String> unsaid,
java.util.Collection<java.lang.String> whole,
java.util.Collection<java.lang.String> powerAdj,
java.util.Collection<java.lang.String> powerPhr)
Constructs a Chimera given a name (typically all lower-case), null if the creature is familiar or a String if
the creature's basic shape is likely to be unknown to players, and several String Collection args for the
different aspects of the Chimera.
|
Chimera(java.lang.String name,
java.lang.String unknown,
java.lang.String... terms)
Constructs a Chimera given a name (typically all lower-case), null if the creature is familiar or a String if
the creature's basic shape is likely to be unknown to players, and an array or vararg of String terms
containing, usually, several groups of String elements separated by the literal string ";" .
|
Modifier and Type | Method and Description |
---|---|
MonsterGen.Chimera |
mix(RNG rng,
java.lang.String newName,
MonsterGen.Chimera other,
double otherInfluence)
Fuse two Chimera objects by some fraction of influence, using the given RNG and possibly renaming the
creature.
|
MonsterGen.Chimera |
mix(java.lang.String newName,
MonsterGen.Chimera other,
double otherInfluence)
Fuse two Chimera objects by some fraction of influence, using the default RNG and possibly renaming the
creature.
|
java.lang.String |
present(boolean capitalize)
Get a string description of this monster's appearance and powers.
|
java.lang.String |
presentVisible(boolean capitalize)
Get a string description of this monster's appearance.
|
java.lang.String |
toString() |
public OrderedMap<java.lang.String,java.util.List<java.lang.String>> parts
public OrderedSet<java.lang.String> unsaidAdjectives
public OrderedSet<java.lang.String> wholeAdjectives
public OrderedSet<java.lang.String> powerAdjectives
public OrderedSet<java.lang.String> powerPhrases
public java.lang.String name
public java.lang.String mainForm
public java.lang.String unknown
public Chimera(java.lang.String name, MonsterGen.Chimera other)
name
- the name to use for the Chimera this constructsother
- the existing Chimera to copy all fields but name from.public Chimera(java.lang.String name, java.lang.String unknown, java.lang.String... terms)
Chimera SNAKE = new Chimera("snake", null, "head", "tail", "fangs", "eyes", ";",
"reptilian", "scaly", "lean", "curvaceous", ";", ";", "toxic");
name
- the name to refer to the creature by and its body parts by when mixedunknown
- true if the creature's basic shape is unlikely to be known by a player, false for animals and
possibly common mythological creatures like dragonsterms
- an array or vararg of String elements, separated by ";" , see method documentation for detailspublic Chimera(java.lang.String name, java.lang.String unknown, java.util.Collection<java.lang.String> parts, java.util.Collection<java.lang.String> unsaid, java.util.Collection<java.lang.String> whole, java.util.Collection<java.lang.String> powerAdj, java.util.Collection<java.lang.String> powerPhr)
Chimera SNAKE = new Chimera("snake", null, "head", "tail", "fangs", "eyes", ";",
"reptilian", "scaly", "lean", "curvaceous", ";", ";", "toxic");
name
- the name to refer to the creature by and its body parts by when mixedunknown
- true if the creature's basic shape is unlikely to be known by a player, false for animals and
possibly common mythological creatures like dragonsparts
- the different body part nouns this creature can contribute to a creature when mixedunsaid
- appearance adjectives that don't need to be said if the creature is familiarwhole
- appearance adjectives that apply to the whole creaturepowerAdj
- power adjectives like "furious" or "fire-breathing"powerPhr
- power phrases like "can cast arcane spells"public java.lang.String present(boolean capitalize)
capitalize
- true if the description should start with a capital letter.public java.lang.String presentVisible(boolean capitalize)
capitalize
- true if the description should start with a capital letter.public java.lang.String toString()
toString
in class java.lang.Object
public MonsterGen.Chimera mix(RNG rng, java.lang.String newName, MonsterGen.Chimera other, double otherInfluence)
rng
- the RNG to determine random factorsnewName
- the name to call the produced Chimeraother
- the Chimera to mix with this oneotherInfluence
- the fraction between 0.0 and 1.0 of descriptors from other to usepublic MonsterGen.Chimera mix(java.lang.String newName, MonsterGen.Chimera other, double otherInfluence)
newName
- the name to call the produced Chimeraother
- the Chimera to mix with this oneotherInfluence
- the fraction between 0.0 and 1.0 of descriptors from other to useCopyright © Eben Howard 2012–2022. All rights reserved.