Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/17/16 18:12:10 (9 years ago)
Author:
gkronber
Message:

#1966 final commit of changes to game before deleting the whole visualization plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BinPacking/PackingPlanVisualizations/3D/PackingGame.cs

    r13497 r13530  
    4949
    5050    private CenteredContainer container;
    51     private MouseManager Mouse;
     51    private MouseManager mouseManager;
    5252    #endregion Global Private Variables
    5353
     
    6666      graphicsDeviceManager.PreparingDeviceSettings +=
    6767        (object sender, PreparingDeviceSettingsEventArgs e) => {
    68           e.GraphicsDeviceInformation.PresentationParameters.MultiSampleCount = MSAALevel.X4;         
     68          e.GraphicsDeviceInformation.PresentationParameters.MultiSampleCount = MSAALevel.X4;
    6969          return;
    7070        };
    71       var controlColor = Color.White; // System.Drawing.SystemColors.Control;
     71      var controlColor = Color.White;
    7272      backgroundColor = new Color(controlColor.R, controlColor.G, controlColor.B, controlColor.A);
    7373
    74       Mouse = new MouseManager(this);
     74      mouseManager = new MouseManager(this);
    7575    }
    7676
    7777    public void SetSize(int width, int height) {
    78 
    7978      graphicsDeviceManager.PreferredBackBufferHeight = height;
    8079      graphicsDeviceManager.PreferredBackBufferWidth = width;
    8180    }
    82 
    83 
    8481
    8582    public void InitializeContainer(BasicCuboidShape containerShape) {
     
    105102      base.Initialize();
    106103      InitializeWorld();
    107       previousMouseState = Mouse.GetState();
    108       Console.WriteLine("Initial bounds:" + Window.ClientBounds);
     104      previousMouseState = mouseManager.GetState();
    109105      this.Window.IsMouseVisible = true;
    110106    }
     
    189185
    190186      #endregion
    191     }
    192 
    193 
    194     protected override void LoadContent() {
    195 
    196187    }
    197188
     
    237228      base.Update(gameTime);
    238229    }
     230
    239231    #region Mouse-Handling Variables
    240232    private MouseState previousMouseState;
     
    243235    private Vector2 currentViewAngle = new Vector2(0, 0);
    244236    #endregion Mouse-Handling Variables
     237
    245238    private void ComputeMouseHandling() {
    246       MouseState mouseState = Mouse.GetState();
    247 
     239      MouseState mouseState = mouseManager.GetState();
    248240      ComputeLeftMouseBtnHandling(mouseState);
    249241      ComputeMouseWheelHandling(mouseState);
Note: See TracChangeset for help on using the changeset viewer.