- New First Aid powerup
- New power progressbar
- Less powerful Desert Eagle
- Bots can use Desert Eagle
- Set TurnTimeLeft to 0 when hh damaged
- Bots can handle situation when ammo is over
- Bots can go in different directions to reach good position, not just only go left or right
- Small fixes for FillLand (use all the array)
- Fixes for world geometry, get rid of one variable
- Added missed in previous commit files
- New test map
#ifndef _TEAM_SELECT_INCLUDED
#define _TEAM_SELECT_INCLUDED
#include <QWidget>
#include <QVBoxLayout>
class QFrame;
#include <list>
#include <map>
class TeamSelWidget;
class FrameTeams;
using namespace std;
struct tmprop
{
tmprop(QString nm) : teamName(nm) {};
QString teamName;
QString pixmapFileName;
bool operator==(const tmprop& t1) const {
return teamName==t1.teamName;
};
bool operator<(const tmprop& t1) const {
return teamName<t1.teamName;
};
};
class TeamSelWidget : public QWidget
{
Q_OBJECT
public:
TeamSelWidget(QWidget* parent=0);
void addTeam(tmprop team);
void removeTeam(tmprop team);
private slots:
void changeTeamStatus(tmprop team);
private:
void addScrArea(FrameTeams* pfteams, QColor color);
FrameTeams* frameDontPlaying;
FrameTeams* framePlaying;
QVBoxLayout mainLayout;
list<tmprop> curPlayingTeams;
list<tmprop> curDontPlayingTeams;
};
#endif // _TEAM_SELECT_INCLUDED