Ejemplo n.º 1
0
        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            myContent = Content;
            base.Initialize();

            this.Window.Title = "Forhandlingen";

            //Makes the gamewindow
            graphics.PreferredBackBufferWidth  = (1280 / 4) * 3;
            graphics.PreferredBackBufferHeight = (960 / 4) * 3 + 20;
            graphics.ApplyChanges();
            windowWitdh = Window.ClientBounds.Width;

            //Creates 3 NegotiatingTricks
            union     = new NegotiatingTrick(new Vector2(0, 150), 1, 1, new Rectangle(0, 0, 50, 25), false, true);
            colleague = new NegotiatingTrick(new Vector2(0, 200), 1, 1, new Rectangle(0, 0, 50, 25), true, false);
            noTrick   = new NegotiatingTrick(new Vector2(0, 250), 1, 1, new Rectangle(0, 0, 50, 25), false, false);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Used to create the Negotiating trick, that the Player can use once through the game
 /// </summary>
 /// <param name="trick">An instanse of the NegotiatingTrick class</param>
 public void CreateNegotiatingTrick(NegotiatingTrick trick)
 {
     negotiatingTrick = trick;
 }