summaryrefslogtreecommitdiff
path: root/src/gui/minimap.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 22:28:40 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 22:42:26 +0200
commit739e1ef748cf61935d3d15ef5319576f81d3a615 (patch)
tree925274893a87ad73d6e934ba7c3b07eed3c6a5ab /src/gui/minimap.h
parent9e5bdec034d81a9afec170988ea0a6d0a40e9e77 (diff)
downloadmana-client-739e1ef748cf61935d3d15ef5319576f81d3a615.tar.gz
mana-client-739e1ef748cf61935d3d15ef5319576f81d3a615.tar.bz2
mana-client-739e1ef748cf61935d3d15ef5319576f81d3a615.tar.xz
mana-client-739e1ef748cf61935d3d15ef5319576f81d3a615.zip
Moved minimap title setting into the Minimap class
Also cleaned up some debug log statements, fixed initialization order, removed an unused member variable and added some documentation.
Diffstat (limited to 'src/gui/minimap.h')
-rw-r--r--src/gui/minimap.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/gui/minimap.h b/src/gui/minimap.h
index 8196683e..36f7578d 100644
--- a/src/gui/minimap.h
+++ b/src/gui/minimap.h
@@ -23,33 +23,30 @@
#define MINIMAP_H
#include "gui/widgets/window.h"
-#include "map.h"
class Image;
+class Map;
/**
- * Minimap dialog.
+ * Minimap window. Shows a minimap image and the name of the current map.
+ *
+ * The name of the map is defined by the map property "name". The minimap image
+ * is defined by the map property "minimap". The path to the image should be
+ * given relative to the root of the client data.
*
* \ingroup Interface
*/
class Minimap : public Window
{
public:
- /**
- * Constructor.
- */
Minimap();
-
- /**
- * Destructor.
- */
~Minimap();
/**
* Sets the map image that should be displayed.
*/
void setMap(Map *map);
-
+
/**
* Toggles the displaying of the minimap.
*/
@@ -61,7 +58,6 @@ class Minimap : public Window
void draw(gcn::Graphics *graphics);
private:
- Map *mMap;
Image *mMapImage;
float mWidthProportion;
float mHeightProportion;