Example #1
0
        public Vector2 GetCurrentMouseTile(mapManager mapIn)
        {
            MouseState mouseState = Mouse.GetState();

            return(mapIn.getTileFromMousePosition(mouseState.X, mouseState.Y, GlobalVariables.TILE_SIZE, 0, 0, associatedUIManager.GetGameWindowWidth(), associatedUIManager.GetGameWindowHeight()));
        }
Example #2
0
 public EventManager(Game gameIn, mapManager mapIn)
 {
     associatedGame = gameIn;
     associatedMap  = mapIn;
 }
Example #3
0
 public InputManager(mapManager mapIn, UIManager uiManagerIn)
 {
     associatedMap       = mapIn;
     associatedUIManager = uiManagerIn;
 }