Example #1
0
        public FlagTest(LegatusGame game)
        {
            Game   = game;
            Input  = new InputReceiverHandler(this);
            Width  = game.Window.ClientBounds.Width;
            Height = game.Window.ClientBounds.Height;

            Flags = new List <Texture2D>();
            GenerateFlags();
        }
Example #2
0
        public HugeMapTest(Game game, int width, int height)
        {
            Game   = game;
            Input  = new InputReceiverHandler(this);
            RNG    = new Random();
            Width  = width;
            Height = height;
            Camera = Vector2.Zero;

            Generate();
        }
Example #3
0
 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);
 }
Example #4
0
        public LOSTest(LegatusGame game, int width, int height)
        {
            Width  = width;
            Height = height;
            Size   = Width * Height;
            Tiles  = new Tile[Width, Height];
            for (int x = 0; x < Width; x++)
            {
                for (int y = 0; y < Height; y++)
                {
                    Tiles[x, y] = new Tile(this, x, y);
                }
            }
            POVTile     = Tiles[0, 0];
            Input       = new InputReceiverHandler(this);
            TileTexture = game.Content.Load <Texture2D>("Graphics/WhiteTile.png");

            Line       = new List <Point>();
            LineOrigin = Point.Zero;
        }
Example #5
0
        public PathfinderTest(Game game, int width, int height)
        {
            TileGrid = new Tile[width, height];
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    TileGrid[x, y] = new Tile(x, y);
                }
            }
            foreach (Tile tile in TileGrid)
            {
                tile.Initialize(this);
            }
            Start = End = TileGrid[0, 0];
            Path  = new List <Tile>();

            TileTexture = game.Content.Load <Texture2D>("Graphics/WhiteTile.png");
            Font        = game.Content.Load <SpriteFont>("Graphics/DefaultFont8");
            Input       = new InputReceiverHandler(this);
        }
Example #6
0
 public ScriptTest(LegatusGame game)
 {
     Input = new InputReceiverHandler(this);
 }