Minimap Class Reference
[User interface related classes (windows, dialogs)]

#include <minimap.h>

Inheritance diagram for Minimap:

Window

List of all members.


Detailed Description

Minimap dialog.

Definition at line 34 of file minimap.h.


Public Member Functions

 Minimap ()
 Constructor.
 ~Minimap ()
 Destructor.
void setMapImage (Image *img)
 Sets the map image that should be displayed.
void setProportion (float proportion)
 Sets the map proportion (1 means 1 tile to one pixel, .5 means 2 tiles to 1 pixel, etc.
void toggle ()
 Toggles the displaying of the minimap.
void draw (gcn::Graphics *graphics)
 Draws the minimap.

Private Attributes

ImagemMapImage
float mProportion

Static Private Attributes

static bool mShow = true

Constructor & Destructor Documentation

Minimap::Minimap (  ) 

Constructor.

Definition at line 38 of file minimap.cpp.

Minimap::~Minimap (  ) 

Destructor.

Definition at line 56 of file minimap.cpp.


Member Function Documentation

void Minimap::setMapImage ( Image img  ) 

Sets the map image that should be displayed.

Definition at line 64 of file minimap.cpp.

void Minimap::setProportion ( float  proportion  )  [inline]

Sets the map proportion (1 means 1 tile to one pixel, .5 means 2 tiles to 1 pixel, etc.

)

Definition at line 55 of file minimap.h.

void Minimap::toggle (  ) 

Toggles the displaying of the minimap.

Definition at line 98 of file minimap.cpp.

void Minimap::draw ( gcn::Graphics *  graphics  ) 

Draws the minimap.

Reimplemented from Window.

Definition at line 103 of file minimap.cpp.


Member Data Documentation

Definition at line 68 of file minimap.h.

float Minimap::mProportion [private]

Definition at line 69 of file minimap.h.

bool Minimap::mShow = true [static, private]

Definition at line 70 of file minimap.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5