#include <Rect.h>
Inheritance diagram for Rect:

Public Methods | |
| Rect () | |
| Rect (Vec2D &upperLeft, Vec2D &lowerRight) | |
| virtual | ~Rect () |
| virtual void | setBounds (const Vec2D &upperLeft, const Vec2D &lowerRight) |
| virtual const vector< Vec2D > & | bounds () const |
| returns the bounding points, pts[0] is upper left, pts[1] is lower right | |
| virtual bool | contains (const Vec2D &pt) const |
Protected Attributes | |
| Vec2D | m_ul |
| Vec2D | m_lr |
| vector< Vec2D > | m_bounds |
|
|
Definition at line 24 of file Rect.cpp. References m_bounds, m_lr, m_ul, and Vec2D.
|
|
||||||||||||
|
Definition at line 31 of file Rect.cpp. References m_bounds, m_lr, and m_ul.
|
|
|
Definition at line 38 of file Rect.cpp.
00039 {
00040 }
|
|
|
returns the bounding points, pts[0] is upper left, pts[1] is lower right
Definition at line 51 of file Rect.h. References m_bounds. Referenced by Icon::drawOutline(), HUD::render(), HUD::translateMiniMapToWorld(), HUD::translateWorldToMiniMap(), and Map::WorldMap::worldToGridCoord().
00051 { return m_bounds; }
|
|
|
Definition at line 42 of file Rect.cpp. Referenced by Icon::drawHelpString(), HUD::isButtonStopClicked(), MilitaryUnit::move(), Overhead::overheadRender(), HUD::processMiniMapInput(), Overhead::processOverheadInput(), HUD::processOverheadInput(), and HUD::render().
|
|
||||||||||||
|
Reimplemented in Icon. Definition at line 45 of file Rect.h. References m_bounds, m_lr, and m_ul. Referenced by Map::createWorldMap(), and HUD::init().
|
|
|
Definition at line 42 of file Rect.h. Referenced by bounds(), Rect(), setBounds(), and Icon::setBounds(). |
|
|
Definition at line 41 of file Rect.h. Referenced by contains(), Icon::Icon(), Rect(), setBounds(), and Icon::setBounds(). |
|
|
Definition at line 40 of file Rect.h. Referenced by contains(), Icon::Icon(), Rect(), setBounds(), and Icon::setBounds(). |
1.3-rc2