cWidget::Map::Mode Class Reference

Collaboration diagram for cWidget::Map::Mode:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Mode (tXmlParser::node cur)

Public Attributes

mode_t m_mode
rotation_t m_rotation
float m_zoom
Clipper *(* m_clipper )(void)


Detailed Description

Definition at line 119 of file cMap.h.


Constructor & Destructor Documentation

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 }

Here is the call graph for this function:


Member Data Documentation

mode_t cWidget::Map::Mode::m_mode

Definition at line 121 of file cMap.h.

Referenced by cWidget::Map::Apply(), and Mode().

rotation_t cWidget::Map::Mode::m_rotation

Definition at line 122 of file cMap.h.

Referenced by cWidget::Map::Apply(), and Mode().

float cWidget::Map::Mode::m_zoom

Definition at line 123 of file cMap.h.

Referenced by cWidget::Map::Apply(), and Mode().

Clipper*(* cWidget::Map::Mode::m_clipper)(void)

Referenced by cWidget::Map::Apply(), and Mode().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:04:12 2008 for Armagetron Advanced by  doxygen 1.5.4