public void Initialize(User user, Level screen) { m_user = user; m_level = screen; m_currentMouseState = Mouse.GetState(); m_previousMouseState = m_currentMouseState; m_currentKeyboardState = Keyboard.GetState(); m_previousKeyboardState = m_currentKeyboardState; m_tileWindow = new TileWindow(); m_tileWindow.Initialize(m_user); m_placeEnemy = false; }
public void Initialize(User user, Level screen, StatusScreen statusScreen, Toolbar toolbar) { m_toolbar = toolbar; m_user = user; m_level = screen; m_currentMouseState = Mouse.GetState(); m_previousMouseState = m_currentMouseState; m_currentKeyboardState = Keyboard.GetState(); m_previousKeyboardState = m_currentKeyboardState; m_tileWindow = new TileWindow(); m_tileWindow.Initialize(m_user); currenState = States.SetTile; m_statusScreen = statusScreen; }