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 void Shoot(Enemy enemy) { Angle = GetRelativeAngle(new Vector2(enemy.X, enemy.Y)); var p = new Projectile(Game, Position, Angle, 0.5f, "projectile", 23); Game.Components.Add(p); }