Public Member Functions | |
Mode (tXmlParser::node cur) | |
Public Attributes | |
mode_t | m_mode |
rotation_t | m_rotation |
float | m_zoom |
Clipper *(* | m_clipper )(void) |
Definition at line 119 of file cMap.h.
cWidget::Map::Mode::Mode | ( | tXmlParser::node | cur | ) |
Definition at line 194 of file cMap.cpp.
References cWidget::Map::ClipperRect::create(), cWidget::Map::ClipperCircle::create(), m_clipper, m_mode, m_rotation, m_zoom, cWidget::Map::MODE_CYCLE, cWidget::Map::MODE_STD, cWidget::Map::MODE_ZONE, cWidget::Map::ROTATION_CAMERA, cWidget::Map::ROTATION_CYCLE, cWidget::Map::ROTATION_FIXED, and cWidget::Map::ROTATION_SPAWN.
00194 { 00195 cur.GetProp("zoomFactor", m_zoom); 00196 tString mode = cur.GetProp("mode"); 00197 if(mode == "closestZone") m_mode = MODE_ZONE; 00198 else if(mode == "cycle") m_mode = MODE_CYCLE; 00199 else m_mode = MODE_STD; 00200 00201 tString rotation = cur.GetProp("rotation"); 00202 if(rotation == "fixed") m_rotation = ROTATION_FIXED; 00203 else if(rotation == "cycle") m_rotation = ROTATION_CYCLE; 00204 else if(rotation == "camera") m_rotation = ROTATION_CAMERA; 00205 else m_rotation = ROTATION_SPAWN; 00206 00207 tString clipper = cur.GetProp("clipMode"); 00208 if(clipper == "ellipse") { 00209 m_clipper = ClipperCircle::create; 00210 } else { 00211 m_clipper = ClipperRect::create; 00212 } 00213 }
Clipper*(* cWidget::Map::Mode::m_clipper)(void) |
Referenced by cWidget::Map::Apply(), and Mode().