~ubuntu-branches/ubuntu/quantal/hedgewars/quantal

« back to all changes in this revision

Viewing changes to QTfrontend/frameTeam.h

  • Committer: Bazaar Package Importer
  • Author(s): Dmitry E. Oboukhov
  • Date: 2010-11-14 22:45:48 UTC
  • mfrom: (1.1.8 upstream) (3.2.9 sid)
  • Revision ID: james.westby@ubuntu.com-20101114224548-ws42t9rz3i4qd972
Tags: 0.9.14.1-1
* New upstream version.
 + New audio tracks
 + New forts: EvilChicken, Tank
 + New game modes: AI Survival Mode, Per Hedgehog Ammo,
   Reset Health, Reset Weapons, Unlimited Attacks
 + New grave: ring
 + Over 30 new hats
 + New themes: Art, Brick, Jungle, Stage
 + New maps: ShoppaKing, Sticks, TrophyRace (Mission)
 + New utilities: Portal Gun, Resurrector
 + New weapons: Flamethrower, Hammer, Old Limburger,
   Piano Strike, Sticky Mines
 + Weapons' projectiles will how be launched from their
   barrels instead of the hog's center
 + Flying Saucers may be used for moving below the water surface
 + New default game schemes: Clean Slate, Fort Mode, Timeless,
   Thinking with Portals, King Mode
 + New default weapon set: Clean Slate, Thinking with Portals
 + Bomb clusters/Melon parts inherit some of the original bomb's speed
 + Extended game statistics
 + Improved health bar updating
 + Hogs that blow themselves up will use triggers in they team color
 + Settings allow better control over the level of details/effects
 + Improved Lua support
 + On empty ammo switch to no weapon rather than the first available
   one (to avoid shooting by accident)
 + Display of hints in the frontend
 + Some improvements of existing Themes of Maps
 + Land destruction effects added
 + Improved fire effects
 + Improved Melon explosion effects
 + Online game lobby now features game filters
 + Other Frontend enhancements
 + Additional sounds
 + Show special game rules in Esc screen
 + Updated translation
 + Speed optimizations
 + Hedgewars will now use a sub directory of "My Documents"
   like other games instead of "%userprofile%/.hedgewars" under Windows
 + Added support for graphics cards/drivers that have a 512x512
   pixel textures limit
 + Team colors are more distinguishable from each other now
 * Fixed bug that allowed charging a weapon while on rope,
   leading to frozen timer
 * Various bug fixes
* Switched to 3.0 source format.
* Switched to cdbs build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Hedgewars, a free turn based strategy game
 
3
 * Copyright (c) 2006, 2007 Ulyanov Igor <iulyanov@gmail.com>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; version 2 of the License
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
17
 */
 
18
 
 
19
#ifndef _FRAME_TEAM_INCLUDED
 
20
#define _FRAME_TEAM_INCLUDED
 
21
 
 
22
#include <QFrame>
 
23
#include <QList>
 
24
#include <QColor>
 
25
 
 
26
#include "teamselect.h"
 
27
 
 
28
class FrameTeams : public QFrame
 
29
{
 
30
  Q_OBJECT
 
31
 
 
32
 friend class CHedgehogerWidget;
 
33
 friend class TeamShowWidget;
 
34
 
 
35
 public:
 
36
  FrameTeams(QWidget* parent=0);
 
37
  QWidget* getTeamWidget(HWTeam team);
 
38
  bool isFullTeams() const;
 
39
  void resetColors();
 
40
  void resetTeams();
 
41
  void setHHNum(const HWTeam& team);
 
42
  void setTeamColor(const HWTeam& team);
 
43
  void setInteractivity(bool interactive);
 
44
  QColor getNextColor() const;
 
45
 
 
46
 signals:
 
47
  void teamColorChanged(const HWTeam&);
 
48
 
 
49
 public slots:
 
50
  void addTeam(HWTeam team, bool willPlay);
 
51
  void removeTeam(HWTeam team);
 
52
 
 
53
 private:
 
54
  const int maxHedgehogsPerGame;
 
55
  int overallHedgehogs;
 
56
  QList<QColor> availableColors;
 
57
  QList<QColor>::Iterator currentColor;
 
58
 
 
59
  void emitTeamColorChanged(const HWTeam& team);
 
60
 
 
61
  QVBoxLayout mainLayout;
 
62
  typedef QMap<HWTeam, QWidget*> tmapTeamToWidget;
 
63
  tmapTeamToWidget teamToWidget;
 
64
  bool nonInteractive;
 
65
};
 
66
 
 
67
#endif // _FRAME_TAM_INCLUDED