C# Class MBGen.WordList

Afficher le fichier Open project: TheBerkin/MoistBanana Class Usage Examples

Méthodes publiques

Свойство Type Description
Classes List>.Dictionary
Description string
Subtypes string[]
Symbol char
Title string
Words string[][]

Méthodes publiques

Méthode Description
GetRandomIndex ( LongRandom rand, string className ) : int
GetRandomWord ( LongRandom rand, string subtype, string className, WordFormat format ) : string
GetRandomWordMultiClass ( LongRandom rand, string subtype, WordFormat format ) : string
GetWordByIndex ( int index, string subtype, WordFormat format ) : string
Merge ( WordList list ) : bool
RandomizeDistWeights ( LongRandom rand, int factor ) : void
WordList ( BinaryReader reader, int &total ) : System
WordList ( string path, int &total ) : System

Private Methods

Méthode Description
Error ( string type ) : string
Format ( string input, WordFormat format ) : string
GetMultiClassList ( ) : List
Load ( BinaryReader reader, int &total ) : void
LookForSubtype ( string name ) : int
PickByWeight ( List items, LongRandom rand ) : int
PickByWeight ( string className, LongRandom rand ) : int
TotalWeights ( List items ) : int
TotalWeights ( string className ) : int

Method Details

GetRandomIndex() public méthode

public GetRandomIndex ( LongRandom rand, string className ) : int
rand LongRandom
className string
Résultat int

GetRandomWord() public méthode

public GetRandomWord ( LongRandom rand, string subtype, string className, WordFormat format ) : string
rand LongRandom
subtype string
className string
format WordFormat
Résultat string

GetRandomWordMultiClass() public méthode

public GetRandomWordMultiClass ( LongRandom rand, string subtype, WordFormat format ) : string
rand LongRandom
subtype string
format WordFormat
Résultat string

GetWordByIndex() public méthode

public GetWordByIndex ( int index, string subtype, WordFormat format ) : string
index int
subtype string
format WordFormat
Résultat string

Merge() public méthode

public Merge ( WordList list ) : bool
list WordList
Résultat bool

RandomizeDistWeights() public méthode

public RandomizeDistWeights ( LongRandom rand, int factor ) : void
rand LongRandom
factor int
Résultat void

WordList() public méthode

public WordList ( BinaryReader reader, int &total ) : System
reader System.IO.BinaryReader
total int
Résultat System

WordList() public méthode

public WordList ( string path, int &total ) : System
path string
total int
Résultat System

Property Details

Classes public_oe property

public Dictionary> Classes
Résultat List>.Dictionary

Description public_oe property

public string Description
Résultat string

Subtypes public_oe property

public string[] Subtypes
Résultat string[]

Symbol public_oe property

public char Symbol
Résultat char

Title public_oe property

public string Title
Résultat string

Words public_oe property

public string[][] Words
Résultat string[][]