예제 #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()));
        }
예제 #2
0
 public EventManager(Game gameIn, mapManager mapIn)
 {
     associatedGame = gameIn;
     associatedMap  = mapIn;
 }
예제 #3
0
 public InputManager(mapManager mapIn, UIManager uiManagerIn)
 {
     associatedMap       = mapIn;
     associatedUIManager = uiManagerIn;
 }