Package squidpony
Class ProceduralMessaging
java.lang.Object
squidpony.ProceduralMessaging
public class ProceduralMessaging extends Object
Combines
Created by Tommy Ettinger on 11/20/2017.
Messaging
with Thesaurus
and optionally NaturalLanguageCipher
to make variations on
a sentence structure.
Created by Tommy Ettinger on 11/20/2017.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProceduralMessaging.AssociatedName
Data class that stores a name String and one or more Strings that may be used as part of a title with that name, typically using categories fromThesaurus
to add variety. -
Field Summary
Fields Modifier and Type Field Description NaturalLanguageCipher
language
Thesaurus
thesaurus
-
Constructor Summary
Constructors Constructor Description ProceduralMessaging()
ProceduralMessaging(long seed)
ProceduralMessaging(long seed, FakeLanguageGen nameLanguage)
ProceduralMessaging(Thesaurus existingThesaurus, NaturalLanguageCipher existingLanguage)
-
Method Summary
Modifier and Type Method Description String
transform(CharSequence message, String userName, Messaging.NounTrait userTrait, String targetName, Messaging.NounTrait targetTrait)
String
transform(CharSequence message, String userName, Messaging.NounTrait userTrait, ProceduralMessaging.AssociatedName target)
String
transform(CharSequence message, ProceduralMessaging.AssociatedName user, String targetName, Messaging.NounTrait targetTrait)
-
Field Details
-
Constructor Details
-
Method Details
-
transform
public String transform(CharSequence message, String userName, Messaging.NounTrait userTrait, String targetName, Messaging.NounTrait targetTrait) -
transform
public String transform(CharSequence message, ProceduralMessaging.AssociatedName user, String targetName, Messaging.NounTrait targetTrait) -
transform
public String transform(CharSequence message, String userName, Messaging.NounTrait userTrait, ProceduralMessaging.AssociatedName target)
-