public EnemyTextBox RegisterEnemy(Enemy enemy, double bias) { var text = texts[(int)(texts.Count * BiasedRandom(bias))]; var textBox = new EnemyTextBox(game, text); trie.Put(text, enemy); return textBox; }
public EnemyTextBox RegisterEnemy(Enemy enemy, double bias) { var text = texts[(int)(texts.Count * BiasedRandom(bias))]; var textBox = new EnemyTextBox(game, text); trie.Put(text, enemy); return(textBox); }