public void Update(GameTime theGameTime, Map map) { KeyboardState currentKeyboardState = Keyboard.GetState(); UpdateMovement(currentKeyboardState); UpdateRocket(theGameTime, currentKeyboardState, map); mPreviousKeyboardState = currentKeyboardState; map.setViewPos(mPosition); base.Update(theGameTime, mSpeed, mDirection); }