ManaPlus
|
#include <viewport.h>
Public Member Functions | |
Viewport () | |
~Viewport () | |
void | setMap (Map *const map) |
void | draw (Graphics *const graphics) |
void | safeDraw (Graphics *const graphics) |
void | logic () |
void | toggleMapDrawType () |
void | toggleCameraMode () |
void | mousePressed (MouseEvent &event) |
void | mouseDragged (MouseEvent &event) |
void | mouseReleased (MouseEvent &event) |
void | mouseMoved (MouseEvent &event) |
void | optionChanged (const std::string &name) |
int | getCameraX () const |
int | getCameraY () const |
void | scrollBy (const int x, const int y) |
void | cleanHoverItems () |
Map * | getMap () const |
void | moveCamera (const int dx, const int dy) |
int | getCameraRelativeX () const |
int | getCameraRelativeY () const |
void | setCameraRelativeX (const int n) |
void | setCameraRelativeY (const int n) |
void | videoResized () |
Viewport () | |
~Viewport () | |
void | setMap (Map *const map) |
void | draw (Graphics *const graphics) |
void | safeDraw (Graphics *const graphics) |
void | logic () |
void | toggleMapDrawType () |
void | toggleCameraMode () |
void | mousePressed (MouseEvent &event) |
void | mouseDragged (MouseEvent &event) |
void | mouseReleased (MouseEvent &event) |
void | mouseMoved (MouseEvent &event) |
void | optionChanged (const std::string &name) |
int | getCameraX () const |
int | getCameraY () const |
void | scrollBy (const int x, const int y) |
void | cleanHoverItems () |
Map * | getMap () const |
void | moveCamera (const int dx, const int dy) |
int | getCameraRelativeX () const |
int | getCameraRelativeY () const |
void | setCameraRelativeX (const int n) |
void | setCameraRelativeY (const int n) |
void | moveCameraToActor (const BeingId actorId, const int x, const int y) |
void | moveCameraToPosition (const int x, const int y) |
void | moveCameraRelative (const int x, const int y) |
void | returnCamera () |
void | getMouseTile (int &destX, int &destY) const |
void | videoResized () |
Public Member Functions inherited from WindowContainer | |
WindowContainer (const Widget2 *const widget) | |
void | slowLogic () |
void | scheduleDelete (Widget *const widget) |
void | adjustAfterResize (const int oldScreenWidth, const int oldScreenHeight) |
void | moveWidgetAfter (Widget *const before, Widget *const widget) |
Public Member Functions inherited from Container | |
Container (const Widget2 *const widget) | |
~Container () | |
bool | safeRemove (Widget *const widget) |
void | removeControls () |
Public Member Functions inherited from BasicContainer2 | |
BasicContainer2 (const Widget2 *const widget) | |
~BasicContainer2 () | |
void | setOpaque (Opaque opaque) |
bool | isOpaque () const |
virtual void | add (Widget *const widget) |
void | addXY (Widget *const widget, const int x, const int y) |
Public Member Functions inherited from BasicContainer | |
BasicContainer (const Widget2 *const widget) | |
~BasicContainer () | |
void | showWidgetPart (Widget *const widget, const Rect &area) |
void | moveToTop (Widget *const widget) |
void | moveToBottom (Widget *const widget) |
Rect | getChildrenArea () |
void | focusNext () |
void | focusPrevious () |
void | setFocusHandler (FocusHandler *const focusHandler) |
void | setInternalFocusHandler (FocusHandler *const focusHandler) |
Widget * | getWidgetAt (int x, int y) |
void | death (const Event &event) |
Widget * | findFirstWidget (const std::set< Widget * > &list) |
void | add (Widget *const widget) |
virtual void | remove (Widget *const widget) |
virtual void | clear () |
Public Member Functions inherited from Widget | |
Widget (const Widget2 *const widget) | |
~Widget () | |
virtual void | drawFrame (Graphics *graphics) |
virtual void | safeDrawFrame (Graphics *graphics) |
void | setFrameSize (const unsigned int frameSize) |
unsigned int | getFrameSize () const |
Widget * | getParent () const |
void | setWidth (const int width) |
int | getWidth () const |
void | setHeight (const int height) |
int | getHeight () const |
void | setSize (const int width, const int height) |
void | setX (const int x) |
int | getX () const |
void | setY (const int y) |
int | getY () const |
void | setPosition (const int x, const int y) |
void | setDimension (const Rect &dimension) |
const Rect & | getDimension () const |
void | setFocusable (const bool focusable) |
bool | isFocusable () const |
virtual bool | isFocused () const |
void | setEnabled (const bool enabled) |
bool | isEnabled () const |
void | setVisible (Visible visible) |
bool | isVisible () const |
void | setBaseColor (const Color &color) |
const Color & | getBaseColor () const |
void | setForegroundColor (const Color &color) |
const Color & | getForegroundColor () const |
void | setBackgroundColor (const Color &color) |
const Color & | getBackgroundColor () const |
virtual void | requestFocus () |
virtual void | requestMoveToTop () |
virtual void | requestMoveToBottom () |
FocusHandler * | getFocusHandler () |
void | addActionListener (ActionListener *const actionListener) |
void | removeActionListener (ActionListener *const actionListener) |
void | addDeathListener (WidgetDeathListener *const deathListener) |
void | removeDeathListener (WidgetDeathListener *const deathListener) |
void | addMouseListener (MouseListener *const mouseListener) |
void | removeMouseListener (MouseListener *const mouseListener) |
void | addKeyListener (KeyListener *const keyListener) |
void | removeKeyListener (KeyListener *const keyListener) |
void | addFocusListener (FocusListener *const focusListener) |
void | removeFocusListener (FocusListener *const focusListener) |
void | addWidgetListener (WidgetListener *const widgetListener) |
void | removeWidgetListener (WidgetListener *const widgetListener) |
void | setActionEventId (const std::string &actionEventId) |
const std::string & | getActionEventId () const |
virtual void | getAbsolutePosition (int &x, int &y) const |
virtual void | setParent (Widget *parent) |
Font * | getFont () const |
void | setFont (Font *const font) |
virtual void | fontChanged () |
bool | isTabInEnabled () const |
void | setTabInEnabled (const bool enabled) |
bool | isTabOutEnabled () const |
void | setTabOutEnabled (const bool enabled) |
void | requestModalFocus () |
virtual void | requestModalMouseInputFocus () |
virtual void | releaseModalFocus () |
virtual void | releaseModalMouseInputFocus () |
virtual bool | isModalFocused () const |
virtual bool | isModalMouseInputFocused () const |
const std::list< MouseListener * > & | getMouseListeners () const A_CONST |
const std::list< KeyListener * > & | getKeyListeners () const A_CONST |
const std::list< FocusListener * > & | getFocusListeners () const A_CONST |
virtual FocusHandler * | getInternalFocusHandler () |
void | setInternalFocusHandler (FocusHandler *const internalFocusHandler) |
void | setId (const std::string &id) |
const std::string & | getId () const |
virtual void | showPart (const Rect &rectangle) |
bool | isAllowLogic () const |
void | setMouseConsume (const bool b) |
bool | isMouseConsume () const |
void | setRedraw (const bool b) |
virtual bool | isSelectable () const |
void | setSelectable (const bool selectable) |
void | windowResized () |
virtual void | postInit () |
Public Member Functions inherited from Widget2 | |
virtual | ~Widget2 () |
const Color & | getThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE |
const Color & | getThemeCharColor (const signed char c, bool &valid) const A_INLINE |
virtual void | setWidget2 (const Widget2 *const widget) |
void | setPalette (int palette) |
void | checkPalette () |
void | setForegroundColor2 (const Color &color) |
Widget * | getWindow () const |
virtual void | setWindow (Widget *const window) |
Public Member Functions inherited from WidgetDeathListener | |
virtual | ~WidgetDeathListener () |
Public Member Functions inherited from MouseListener | |
virtual | ~MouseListener () |
virtual void | mouseEntered (MouseEvent &event) |
virtual void | mouseExited (MouseEvent &event) |
virtual void | mouseClicked (MouseEvent &event) |
virtual void | mouseWheelMovedUp (MouseEvent &event) |
virtual void | mouseWheelMovedDown (MouseEvent &event) |
Public Member Functions inherited from ConfigListener | |
ConfigListener () | |
virtual | ~ConfigListener () |
Data Fields | |
int | mMouseX |
int | mMouseY |
Data Fields inherited from Widget | |
Visible | mVisible |
Protected Member Functions | |
void | clearHover (const ActorSprite *const actor) |
Clears any matching hovers. More... | |
void | updateMidVars () |
void | updateMaxVars () |
Protected Member Functions inherited from BasicContainer | |
virtual void | drawChildren (Graphics *const graphics) |
virtual void | safeDrawChildren (Graphics *const graphics) |
virtual void | logicChildren () |
Protected Member Functions inherited from Widget | |
void | distributeActionEvent () |
void | distributeResizedEvent () |
void | distributeMovedEvent () |
void | distributeHiddenEvent () |
void | distributeShownEvent () |
Protected Member Functions inherited from Widget2 | |
Widget2 (const Widget2 *const widget) | |
Protected Member Functions inherited from WidgetDeathListener | |
WidgetDeathListener () | |
Protected Member Functions inherited from MouseListener | |
MouseListener () | |
Static Protected Member Functions | |
static void | validateSpeed () |
Private Member Functions | |
void | drawDebugPath (Graphics *const graphics) |
void | drawPath (Graphics *const graphics, const Path &path, const Color &color) const |
bool | leftMouseAction () |
bool | openContextMenu (const MouseEvent &event) |
void | walkByMouse (const MouseEvent &event) |
void | followMouse () |
void | drawDebugPath (Graphics *const graphics) |
void | drawPath (Graphics *const graphics, const Path &path, const Color &color) const |
bool | leftMouseAction () |
bool | openContextMenu (const MouseEvent &event) |
void | walkByMouse (const MouseEvent &event) |
void | getMouseTile (const int x, const int y, int &destX, int &destY) const |
void | followMouse () |
Private Attributes | |
Map * | mMap |
Being * | mHoverBeing |
FloorItem * | mHoverItem |
MapItem * | mHoverSign |
int | mScrollRadius |
int | mScrollLaziness |
int | mScrollCenterOffsetX |
int | mScrollCenterOffsetY |
int | mMousePressX |
int | mMousePressY |
int | mPixelViewX |
int | mPixelViewY |
int | mLocalWalkTime |
int | mCameraRelativeX |
int | mCameraRelativeY |
bool | mShowBeingPopup |
bool | mSelfMouseHeal |
bool | mEnableLazyScrolling |
bool | mMouseDirectionMove |
bool | mLongMouseClick |
bool | mMouseClicked |
bool | mPlayerFollowMouse |
int | mMidTileX |
int | mMidTileY |
int | mViewXmax |
int | mViewYmax |
time_t | mLocalWalkTime |
bool | mAllowMoveByMouse |
Friends | |
class | ActorManager |
The viewport on the map. Displays the current map and handles mouse input and the popup menu.
Definition at line 44 of file viewport.h.
Viewport::Viewport | ( | ) |
Constructor.
Definition at line 40 of file viewport.cpp.
References Configuration::addListener(), Widget::addMouseListener(), config, Opaque_false, Widget::setFocusable(), and BasicContainer2::setOpaque().
Viewport::~Viewport | ( | ) |
Destructor.
Definition at line 83 of file viewport.cpp.
References CHECKLISTENERS, config, and Configuration::removeListeners().
Viewport::Viewport | ( | ) |
Constructor.
Viewport::~Viewport | ( | ) |
Destructor.
void Viewport::cleanHoverItems | ( | ) |
Clear all hover item, being etc
Definition at line 259 of file viewport.cpp.
References mHoverBeing, mHoverItem, and mHoverSign.
Referenced by Game::changeMap().
void Viewport::cleanHoverItems | ( | ) |
Clear all hover item, being etc
|
protected |
Clears any matching hovers.
Definition at line 1054 of file viewport.cpp.
References mHoverBeing, and mHoverItem.
Referenced by ActorManager::logic().
|
virtual |
Draws the viewport.
Reimplemented from BasicContainer2.
Definition at line 93 of file viewport.cpp.
References BLOCK_END, BLOCK_START, BasicContainer2::draw(), Graphics::fillRectangle(), Widget::getHeight(), Widget::getWidth(), Graphics::setColor(), and tick_time.
Referenced by safeDraw().
|
virtual |
Draws the viewport.
Reimplemented from BasicContainer2.
|
private |
Finds a path from the player to the mouse, and draws it. This is for debug purposes.
Definition at line 129 of file viewport.cpp.
|
private |
Finds a path from the player to the mouse, and draws it. This is for debug purposes.
|
private |
Draws the given path.
Definition at line 354 of file viewport.cpp.
References Font::drawString(), Graphics::fillRectangle(), FOR_EACH, Widget::getFont(), Font::getWidth(), mapTileSize, mMap, mPixelViewX, mPixelViewY, Graphics::setColor(), and Catch::toString().
|
private |
Draws the given path.
|
private |
|
private |
Make the player go to the mouse position.
|
inline |
Definition at line 140 of file viewport.h.
References mCameraRelativeX.
Referenced by Minimap::draw2(), and NpcDialog::saveCamera().
|
inline |
|
inline |
Definition at line 143 of file viewport.h.
References mCameraRelativeY.
Referenced by Minimap::draw2(), and NpcDialog::saveCamera().
|
inline |
|
inline |
Returns camera x offset in pixels.
Definition at line 115 of file viewport.h.
References mPixelViewX.
Referenced by MapDebugTab::logic(), and ParticleEngine::update().
|
inline |
Returns camera x offset in pixels.
Definition at line 117 of file viewport.h.
References mPixelViewX.
|
inline |
Returns camera y offset in pixels.
Definition at line 121 of file viewport.h.
References mPixelViewY.
Referenced by MapDebugTab::logic(), and ParticleEngine::update().
|
inline |
Returns camera y offset in pixels.
Definition at line 123 of file viewport.h.
References mPixelViewY.
|
inline |
Definition at line 135 of file viewport.h.
References mMap.
Referenced by QuitDialog::action(), RenameListener::action(), Setup_Audio::apply(), PopupMenu::handleLink(), AvatarListBox::mousePressed(), Ea::PlayerRecv::processMapMusic(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponseTitle(), Ea::MapRecv::processSetTilesType(), GameModifiers::resetModifiers(), and Game::slowLogic().
|
inline |
|
private |
Definition at line 619 of file viewport.cpp.
References BlockMask::AIR, CAST_S32, Map::getHeightOffset(), Map::getTileHeight(), Map::getTileWidth(), Map::getWalk(), Map::isHeightsPresent(), mainGraphics, Graphics::mHeight, mMap, mPixelViewX, mPixelViewY, BlockMask::PLAYERWALL, BlockMask::WALL, BlockMask::WATER, x, and y.
void Viewport::getMouseTile | ( | int & | destX, |
int & | destY | ||
) | const |
Definition at line 614 of file viewport.cpp.
References mMouseX, and mMouseY.
Referenced by SkillDialog::useSkill(), and SkillDialog::useSkillDefault().
|
private |
Definition at line 266 of file viewport.cpp.
Referenced by mousePressed(), and mouseReleased().
|
private |
|
virtual |
Implements player to keep following mouse.
Reimplemented from BasicContainer.
Definition at line 116 of file viewport.cpp.
References BLOCK_END, BLOCK_START, Gui::getMouseState(), mMouseX, and mMouseY.
|
virtual |
Implements player to keep following mouse.
Reimplemented from BasicContainer.
|
virtual |
Handles mouse move on map
Reimplemented from MouseListener.
Definition at line 179 of file viewport.cpp.
References Event::getSource(), MouseEvent::getX(), MouseEvent::getY(), InputGuiEvent::isConsumed(), mMouseClicked, mMousePressX, mMousePressY, mPlayerFollowMouse, and walkByMouse().
|
virtual |
Handles mouse move on map
Reimplemented from MouseListener.
|
virtual |
Handles mouse move on map.
Reimplemented from MouseListener.
Definition at line 247 of file viewport.cpp.
|
virtual |
Handles mouse move on map.
Reimplemented from MouseListener.
|
virtual |
Handles mouse press on map.
Reimplemented from MouseListener.
Definition at line 138 of file viewport.cpp.
References Event::getSource(), PopupManager::hidePopupMenu(), InputGuiEvent::isConsumed(), PopupManager::isPopupMenuVisible(), MouseButton::LEFT, leftMouseAction(), mLongMouseClick, mMouseClicked, mMousePressX, mMousePressY, mPlayerFollowMouse, openContextMenu(), and MouseButton::RIGHT.
|
virtual |
Handles mouse press on map.
Reimplemented from MouseListener.
|
virtual |
Handles mouse button release on map.
Reimplemented from MouseListener.
Definition at line 198 of file viewport.cpp.
References Event::getSource(), gui, InputGuiEvent::isConsumed(), Gui::isLongPress(), MouseButton::LEFT, leftMouseAction(), mLocalWalkTime, mLongMouseClick, mMouseClicked, mPlayerFollowMouse, openContextMenu(), Gui::resetClickCount(), and walkByMouse().
|
virtual |
Handles mouse button release on map.
Reimplemented from MouseListener.
void Viewport::moveCamera | ( | const int | dx, |
const int | dy | ||
) |
Definition at line 1070 of file viewport.cpp.
References mCameraRelativeX, mCameraRelativeY, and updateMidVars().
Referenced by Game::moveInDirection().
void Viewport::moveCamera | ( | const int | dx, |
const int | dy | ||
) |
void Viewport::moveCameraRelative | ( | const int | x, |
const int | y | ||
) |
Definition at line 1103 of file viewport.cpp.
References Settings::cameraMode, mCameraRelativeX, mCameraRelativeY, settings, updateMidVars(), x, and y.
Referenced by Ea::NpcRecv::processNpcCommand().
void Viewport::moveCameraToActor | ( | const BeingId | actorId, |
const int | x, | ||
const int | y | ||
) |
Definition at line 1077 of file viewport.cpp.
References actorManager, Settings::cameraMode, ActorManager::findBeing(), localPlayer, mCameraRelativeX, mCameraRelativeY, Actor::mPixelX, Actor::mPixelY, settings, updateMidVars(), x, and y.
Referenced by Ea::NpcRecv::processNpcCommand().
void Viewport::moveCameraToPosition | ( | const int | x, |
const int | y | ||
) |
Definition at line 1092 of file viewport.cpp.
References Settings::cameraMode, localPlayer, mCameraRelativeX, mCameraRelativeY, Actor::mPixelX, Actor::mPixelY, settings, updateMidVars(), x, and y.
Referenced by Ea::NpcRecv::processNpcCommand().
|
private |
Definition at line 133 of file viewport.cpp.
Referenced by mousePressed(), and mouseReleased().
|
private |
|
virtual |
A relevant config option changed.
Implements ConfigListener.
Definition at line 229 of file viewport.cpp.
References config, Configuration::getBoolValue(), Configuration::getIntValue(), mEnableLazyScrolling, mLongMouseClick, mMouseDirectionMove, mScrollLaziness, mScrollRadius, mSelfMouseHeal, and mShowBeingPopup.
|
virtual |
A relevant config option changed.
Implements ConfigListener.
void Viewport::returnCamera | ( | ) |
Definition at line 1111 of file viewport.cpp.
References Settings::cameraMode, mCameraRelativeX, mCameraRelativeY, settings, and updateMidVars().
Referenced by EAthena::BeingRecv::processBeingSlide(), Ea::NpcRecv::processNpcCommand(), and Ea::PlayerRecv::processPlayerWarp().
|
virtual |
|
virtual |
Reimplemented from BasicContainer2.
|
inline |
Changes viewpoint by relative pixel coordinates.
Definition at line 127 of file viewport.h.
References mPixelViewX, mPixelViewY, x, and y.
Referenced by Ea::PlayerRecv::processPlayerWarp().
|
inline |
Changes viewpoint by relative pixel coordinates.
Definition at line 129 of file viewport.h.
References mPixelViewX, mPixelViewY, x, and y.
|
inline |
Definition at line 146 of file viewport.h.
References mCameraRelativeX.
Referenced by NpcDialog::restoreCamera().
|
inline |
|
inline |
Definition at line 149 of file viewport.h.
References mCameraRelativeY.
Referenced by NpcDialog::restoreCamera().
|
inline |
void Viewport::setMap | ( | Map *const | map | ) |
Sets the map displayed by the viewport.
Definition at line 89 of file viewport.cpp.
Referenced by Game::changeMap().
void Viewport::setMap | ( | Map *const | map | ) |
Sets the map displayed by the viewport.
void Viewport::toggleCameraMode | ( | ) |
Definition at line 255 of file viewport.cpp.
Referenced by GameModifiers::changeCameraMode(), GameModifiers::resetModifiers(), and NpcDialog::restoreCamera().
void Viewport::toggleCameraMode | ( | ) |
void Viewport::toggleMapDrawType | ( | ) |
Toggles whether the path debug graphics are shown. normal, debug with all images and grid, debug with out big images and with out grid.
Definition at line 251 of file viewport.cpp.
Referenced by GameModifiers::changeMapDrawType().
void Viewport::toggleMapDrawType | ( | ) |
Toggles whether the path debug graphics are shown. normal, debug with all images and grid, debug with out big images and with out grid.
|
protected |
Definition at line 1137 of file viewport.cpp.
References Map::getHeight(), Map::getTileHeight(), Map::getTileWidth(), Map::getWidth(), mainGraphics, Graphics::mHeight, mMap, mViewXmax, mViewYmax, and Graphics::mWidth.
|
protected |
Definition at line 1129 of file viewport.cpp.
References mainGraphics, mCameraRelativeX, mCameraRelativeY, Graphics::mHeight, mMidTileX, mMidTileY, mScrollCenterOffsetX, mScrollCenterOffsetY, and Graphics::mWidth.
Referenced by moveCamera(), moveCameraRelative(), moveCameraToActor(), moveCameraToPosition(), returnCamera(), setCameraRelativeX(), and setCameraRelativeY().
|
staticprotected |
Definition at line 1119 of file viewport.cpp.
References InputAction::ATTACK, inputManager, Game::instance(), InputManager::isActionActive(), Game::setValidSpeed(), and InputAction::TARGET_ATTACK.
void Viewport::videoResized | ( | ) |
void Viewport::videoResized | ( | ) |
|
private |
Definition at line 175 of file viewport.cpp.
Referenced by mouseDragged(), and mouseReleased().
|
private |
|
friend |
Definition at line 172 of file viewport.h.
|
private |
Definition at line 243 of file viewport.h.
|
private |
Definition at line 200 of file viewport.h.
Referenced by getCameraRelativeX(), moveCamera(), moveCameraRelative(), moveCameraToActor(), moveCameraToPosition(), returnCamera(), setCameraRelativeX(), and updateMidVars().
|
private |
Definition at line 201 of file viewport.h.
Referenced by getCameraRelativeY(), moveCamera(), moveCameraRelative(), moveCameraToActor(), moveCameraToPosition(), returnCamera(), setCameraRelativeY(), and updateMidVars().
|
private |
Definition at line 205 of file viewport.h.
Referenced by optionChanged().
|
private |
Being mouse is currently over.
Definition at line 185 of file viewport.h.
Referenced by cleanHoverItems(), and clearHover().
|
private |
FloorItem mouse is currently over.
Definition at line 186 of file viewport.h.
Referenced by cleanHoverItems(), and clearHover().
|
private |
Map sign mouse is currently over.
Definition at line 187 of file viewport.h.
Referenced by cleanHoverItems().
|
private |
Timestamp before the next walk can be sent.
Definition at line 198 of file viewport.h.
Referenced by mouseReleased().
|
private |
Definition at line 233 of file viewport.h.
|
private |
Definition at line 207 of file viewport.h.
Referenced by mousePressed(), mouseReleased(), and optionChanged().
|
private |
The current map.
Definition at line 183 of file viewport.h.
Referenced by drawPath(), getMap(), getMouseTile(), and updateMaxVars().
|
private |
Definition at line 228 of file viewport.h.
Referenced by updateMidVars().
|
private |
Definition at line 229 of file viewport.h.
Referenced by updateMidVars().
|
private |
Definition at line 208 of file viewport.h.
Referenced by mouseDragged(), mousePressed(), and mouseReleased().
|
private |
Definition at line 206 of file viewport.h.
Referenced by optionChanged().
|
private |
Definition at line 193 of file viewport.h.
Referenced by mouseDragged(), and mousePressed().
|
private |
Definition at line 194 of file viewport.h.
Referenced by mouseDragged(), and mousePressed().
int Viewport::mMouseX |
Current mouse position in pixels.
Definition at line 154 of file viewport.h.
Referenced by getMouseTile(), ItemLinkHandler::handleItemLink(), WhoIsOnline::handleLink(), MapDebugTab::logic(), logic(), EmoteShortcutContainer::mouseMoved(), ItemContainer::mouseMoved(), ItemShortcutContainer::mouseMoved(), ShopListBox::mouseMoved(), SkillListBox::mouseMoved(), SkillRectangleListBox::mouseMoved(), SpellShortcutContainer::mouseMoved(), VirtShortcutContainer::mouseMoved(), ItemAmountWindow::mouseMoved(), ToolTipListener::mouseMoved(), AvatarListBox::mousePressed(), ItemShortcutContainer::mousePressed(), VirtShortcutContainer::mousePressed(), ChatWindow::mousePressed(), NpcDialog::mousePressed(), OutfitWindow::mousePressed(), ShopListBox::mouseReleased(), SpellShortcutContainer::mouseReleased(), Minimap::mouseReleased(), PopupMenu::setMousePos(), and PopupMenu::setMousePos2().
int Viewport::mMouseY |
Current mouse position in pixels.
Definition at line 155 of file viewport.h.
Referenced by getMouseTile(), ItemLinkHandler::handleItemLink(), WhoIsOnline::handleLink(), MapDebugTab::logic(), logic(), EmoteShortcutContainer::mouseMoved(), ItemContainer::mouseMoved(), ItemShortcutContainer::mouseMoved(), ShopListBox::mouseMoved(), SkillListBox::mouseMoved(), SkillRectangleListBox::mouseMoved(), SpellShortcutContainer::mouseMoved(), VirtShortcutContainer::mouseMoved(), ItemAmountWindow::mouseMoved(), ToolTipListener::mouseMoved(), AvatarListBox::mousePressed(), ItemShortcutContainer::mousePressed(), VirtShortcutContainer::mousePressed(), ChatWindow::mousePressed(), NpcDialog::mousePressed(), OutfitWindow::mousePressed(), ShopListBox::mouseReleased(), SpellShortcutContainer::mouseReleased(), Minimap::mouseReleased(), PopupMenu::setMousePos(), and PopupMenu::setMousePos2().
|
private |
Current viewpoint in pixels.
Definition at line 195 of file viewport.h.
Referenced by drawPath(), getCameraX(), getMouseTile(), and scrollBy().
|
private |
Current viewpoint in pixels.
Definition at line 196 of file viewport.h.
Referenced by drawPath(), getCameraY(), getMouseTile(), and scrollBy().
|
private |
Definition at line 209 of file viewport.h.
Referenced by mouseDragged(), mousePressed(), and mouseReleased().
|
private |
Definition at line 191 of file viewport.h.
Referenced by updateMidVars().
|
private |
Definition at line 192 of file viewport.h.
Referenced by updateMidVars().
|
private |
Definition at line 190 of file viewport.h.
Referenced by optionChanged().
|
private |
Definition at line 189 of file viewport.h.
Referenced by optionChanged().
|
private |
Definition at line 204 of file viewport.h.
Referenced by optionChanged().
|
private |
Definition at line 203 of file viewport.h.
Referenced by optionChanged().
|
private |
Definition at line 230 of file viewport.h.
Referenced by updateMaxVars().
|
private |
Definition at line 231 of file viewport.h.
Referenced by updateMaxVars().