Example #1
0
        // Monogame Methods

        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            playerBoard = new Gameboard(this);

            //create size
            TOTALWIDTH  = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
            TOTALHEIGHT = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height; //full screen

            playUI = new PlaytimeUI(TOTALWIDTH, TOTALHEIGHT, this);

            playerBoard.RefUI();

            //create window
            graphics.IsFullScreen              = true;
            graphics.PreferredBackBufferWidth  = TOTALWIDTH;
            graphics.PreferredBackBufferHeight = TOTALHEIGHT;
            graphics.ApplyChanges();

            mainMenu = new MainMenu();
            mainMenu.Activate();
            mainMenu.Enabled = true;
            mainMenu.Show();
            // end window

            //Cursor
            cursor = new AwCursor(playerBoard, this, PlayUI.PlayArea);

            base.Initialize();
        }
Example #2
0
 public Tile(Point point, string tag, PlaytimeUI uireference)
 {
     uiRef    = uireference;
     Position = point;
     Tag      = tag;
 }
Example #3
0
 public Unit(Point point, string tag, PlaytimeUI uireference) : base(point, tag, uireference)
 {
 }
Example #4
0
 public Terrain(Point point, string tag, PlaytimeUI uireference) : base(point, tag, uireference)
 {
 }