public Faction(Random rng, ProceduralLanguageFactory languageFactory) { Color = new Color(rng.Next(255), rng.Next(255), rng.Next(255)); //Language = new ListedLanguage("Linguistics/RandomNames.txt"); Language = languageFactory.Generate(); Name = Language.GenerateName(rng); AIControlled = true; }
public LanguageTest(LegatusGame game) { Input = new InputEventHandler(); Input.KeyboardAction += OnKeyboardAction; //Input.KeyReleased += new KeyReleasedDelegate(OnKeyReleased); Font = game.Content.Load <SpriteFont>("Graphics/DefaultFont12IPA"); Factory = new ProceduralLanguageFactory(RNG); CreateLanguages(); CreateWords(); CreateLoanwords(); }
public AITest(LegatusGame game, int width, int height) { RNG = new Random(); LanguageFactory = new ProceduralLanguageFactory(RNG); TileTexture = game.Content.Load <Texture2D>("Graphics/WhiteTile.png"); Font = game.Content.Load <SpriteFont>("Graphics/DefaultFont12"); Input = new InputReceiverHandler(this); Factions = new List <Faction>(); Cities = new List <City>(); Units = new List <Unit>(); Generate(width, height); }