You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/konquest/minimap.h

46 lines
683 B

#ifndef _MINIMAP_H
#define _MINIMAP_H
#include <tqwidget.h>
#include <tqframe.h>
#include <tqpixmap.h>
#include <tqgridview.h>
#include <tqtimer.h>
#include "gamecore.h"
#include "images.h"
class MiniMap : public TQGridView
{
Q_OBJECT
// Constructors
public:
MiniMap( TQWidget *parent = 0, const char* name = 0 );
virtual ~MiniMap();
void setMap( Map *newMap );
protected:
void paintCell( TQPainter *p, int row, int col );
private slots:
void mapUpdate();
private:
int SECTOR_HEIGHT;
int SECTOR_WIDTH;
int BOARD_HEIGHT;
int BOARD_WIDTH;
void drawSector( TQPainter *, Sector & );
Map *map;
};
#endif // _MINIMAP_H_