diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-03 11:52:07 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-03 11:52:07 (GMT) |
| commit | 347c382e9964ef7954246399ab9d96df43dcbff0 (patch) | |
| tree | f720da533d4b129290e29d7e4c935ace41b68c57 /src/simulation/Simulation.h | |
| parent | a3ebfb0ffde9c4ec9db5ace2e15968065c744cde (diff) | |
| download | powder-347c382e9964ef7954246399ab9d96df43dcbff0.zip powder-347c382e9964ef7954246399ab9d96df43dcbff0.tar.gz | |
Allow PROP to set types from element name, fixes issue #48
Diffstat (limited to 'src/simulation/Simulation.h')
| -rw-r--r-- | src/simulation/Simulation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/simulation/Simulation.h b/src/simulation/Simulation.h index ff59a92..31a0a07 100644 --- a/src/simulation/Simulation.h +++ b/src/simulation/Simulation.h @@ -183,6 +183,8 @@ public: void GetGravityField(int x, int y, float particleGrav, float newtonGrav, float & pGravX, float & pGravY); + int GetParticleType(std::string type); + void *transform_save(void *odata, int *size, matrix2d transform, vector2d translate); inline void orbitalparts_get(int block1, int block2, int resblock1[], int resblock2[]); inline void orbitalparts_set(int *block1, int *block2, int resblock1[], int resblock2[]); |
