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/planet_info.h

55 lines
1006 B

#ifndef _PLANET_INFO_H_
#define _PLANET_INFO_H_
#include <tqframe.h>
#include <tqstring.h>
#include <tqptrlist.h>
#include <tqpalette.h>
#include "gamecore.h"
class TQLabel;
struct planet_info_buffer {
Planet *planet;
int production;
int ships;
float killRate;
};
typedef TQPtrList<planet_info_buffer> PlanetInfoList;
typedef TQPtrListIterator<planet_info_buffer> PlanetInfoListIterator;
class PlanetInfo : public TQFrame
{
Q_OBJECT
TQ_OBJECT
public:
PlanetInfo( TQWidget *tqparent, TQPalette palette );
virtual ~PlanetInfo();
void setPlanetList( PlanetList &newPlanets );
void rescanPlanets();
TQSize tqsizeHint() const;
public slots:
void showPlanet( Planet * );
private:
void emptyPlanetInfoList();
void clearDisplay();
PlanetList *planets;
PlanetInfoList planet_stats;
TQLabel *name;
TQLabel *owner;
TQLabel *ships;
TQLabel *production;
TQLabel *kill_percent;
};
#endif // _PLANET_INFO_H_