summaryrefslogtreecommitdiff
path: root/src/simulation/Simulation.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-01-24 20:19:19 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-01-24 20:19:19 (GMT)
commit97b35bc47059315d4138c8e0827842d2c03de152 (patch)
treefeaf7a8c018982ba9d7ca1b8e6e15294abfdfc84 /src/simulation/Simulation.h
parent04488081d3fa0cd3dfb2939e5d902bc894df150d (diff)
downloadpowder-97b35bc47059315d4138c8e0827842d2c03de152.zip
powder-97b35bc47059315d4138c8e0827842d2c03de152.tar.gz
Various
Diffstat (limited to 'src/simulation/Simulation.h')
-rw-r--r--src/simulation/Simulation.h51
1 files changed, 33 insertions, 18 deletions
diff --git a/src/simulation/Simulation.h b/src/simulation/Simulation.h
index 86f9b8f..c36a18f 100644
--- a/src/simulation/Simulation.h
+++ b/src/simulation/Simulation.h
@@ -14,6 +14,8 @@
#include "Elements.h"
#include "Misc.h"
#include "game/Brush.h"
+#include "SimulationData.h"
+//#include "ElementFunctions.h"
#define CHANNELS ((int)(MAX_TEMP-73)/100+2)
@@ -36,13 +38,6 @@ struct Particle
};
typedef struct Particle Particle;
-struct sign
-{
- int x,y,ju;
- char text[256];
-};
-typedef struct sign sign;
-
struct part_type
{
char *name;
@@ -87,17 +82,6 @@ struct part_transition
};
typedef struct part_transition part_transition;
-struct playerst
-{
- char comm; //command cell
- char pcomm; //previous command
- int elem; //element power
- float legs[16]; //legs' positions
- float accs[8]; //accelerations
- char spwn; //if stick man was spawned
- unsigned int frames; //frames since last particle spawn - used when spawning LIGH
-};
-typedef struct playerst playerst;
struct wall_type
{
@@ -117,6 +101,34 @@ struct gol_menu
};
typedef struct gol_menu gol_menu;
+struct menu_section
+{
+ char *icon;
+ const char *name;
+ int itemcount;
+ int doshow;
+};
+typedef struct menu_section menu_section;
+
+struct sign
+{
+ int x,y,ju;
+ char text[256];
+};
+typedef struct sign sign;
+
+struct playerst
+{
+ char comm; //command cell
+ char pcomm; //previous command
+ int elem; //element power
+ float legs[16]; //legs' positions
+ float accs[8]; //accelerations
+ char spwn; //if stick man was spawned
+ unsigned int frames; //frames since last particle spawn - used when spawning LIGH
+};
+typedef struct playerst playerst;
+
//#ifdef _cplusplus
class Simulation
{
@@ -125,12 +137,15 @@ public:
Gravity * grav;
Air * air;
+
part_type ptypes[PT_NUM];
part_transition ptransitions[PT_NUM];
wall_type wtypes[UI_WALLCOUNT];
gol_menu gmenu[NGOL];
int goltype[NGOL];
int grule[NGOL+1][10];
+ menu_section msections[SC_TOTAL];
+
playerst player;
playerst player2;
playerst fighters[256]; //255 is the maximum number of fighters