6 #include <sx/SXWidget.h>
8 #include <QDoubleSpinBox>
13 #include <QMainWindow>
33 static float maxStateSwitchTime;
34 static float maxRespawnDistance;
35 static float maxKillDistance;
40 float stateswitchtime;
43 float recordslowdownpos;
48 unsigned int groupsize;
60 static void setMaxStateSwitchTime(
float t);
61 static void setMaxRespawnDistance(
float d);
62 static void setMaxKillDistance(
float d);
64 Glyph(
unsigned int id);
66 unsigned int getID()
const;
68 void reset(
const Vector &startpos,
float *data);
69 const Vector &getMidpoint();
70 void updatePositions(
const float *data);
71 void updateVelocities(
const float *data);
72 void updateGlyphsize();
74 unsigned int getGroupSize()
const;
75 Vector &operator[](
unsigned int i);
77 float getVorticity()
const;
81 float killDistance()
const;
82 float respawnDistance()
const;
86 void updateStateSwitchTime(
float deltatime);
87 GlyphState getState()
const;
102 unsigned int cells_x;
103 unsigned int cells_y;
105 list<GridElement *> elements;
106 list<GridElement *> **grid;
113 void put(
Glyph *glyph);
116 bool respawnCollide(
Glyph *g);
126 static unsigned int GROUPS;
127 static const unsigned int RESPAWN_WIDTH;
128 static const unsigned int RESPAWN_HEIGHT;
139 bool updateGlyphCount;
141 list<Glyph *> glyphs;
145 unsigned int respawn_pos_x;
146 unsigned int respawn_pos_y;
150 Vector getMinRespawnPos();
158 void setMaxGlyphs(
unsigned int glyphs);
159 void setView(ViewOption view);
161 void setSolidMap(
const string &path);
162 void setBackgroundMap(
const string &path);
177 void valueChanged(
double);
183 QDoubleSpinBox *text;
188 FloatSlider(
const string &label,
double value,
double minVal,
double maxVal, QWidget *parent = 0, Qt::WindowFlags f = 0);
191 void setValue(
double value);
192 double getValue()
const;
193 void setMinimum(
double minVal);
194 double getMinimum()
const;
195 void setMaximum(
double maxVal);
196 double getMaximum()
const;
197 void setRange(
double minVal,
double maxVal);
205 void valueChanged(
int);
216 IntSlider(
const string &label,
int value,
int minVal,
int maxVal, QWidget *parent = 0, Qt::WindowFlags f = 0);
219 void setValue(
int value);
220 int getValue()
const;
221 void setMinimum(
int minVal);
222 int getMinimum()
const;
223 void setMaximum(
int maxVal);
224 int getMaximum()
const;
225 void setRange(
int minVal,
int maxVal);
234 WarningWidget(
const QString &title,
const QString &text, QWidget *w);
249 QSize sizeHint()
const;
250 bool hasHeightForWidth ()
const;
251 int heightForWidth(
int w)
const;
268 QComboBox *viewOptions;
274 void updateMaxGlyphs();
275 void updateMaxStateSwitchTime();
276 void updateMaxRespawnDistance();
277 void updateMaxKillDistance();
278 void updateViewOptions();
280 void loadBackground();
284 static const string VIEWOPTION_STANDARD;
285 static const string VIEWOPTION_VORTICITY;
Definition: Exception.h:13