|
|
@@ -58,6 +58,18 @@ soft_start(PN_stdfloat br) {
|
|
|
_tics_since_birth = 0.0f;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * Causes system to use birth rate set by set_birth_rate(), with the system's
|
|
|
+ * first birth being delayed by the value of first_birth_delay. Note that a
|
|
|
+ * negative delay is perfectly valid, causing the first birth to happen
|
|
|
+ * sooner rather than later.
|
|
|
+ */
|
|
|
+INLINE void ParticleSystem::
|
|
|
+soft_start(PN_stdfloat br, PN_stdfloat first_birth_delay) {
|
|
|
+ soft_start(br);
|
|
|
+ _tics_since_birth = -first_birth_delay;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* Causes system to use birth rate set by set_soft_birth_rate()
|
|
|
*/
|
|
|
@@ -342,6 +354,14 @@ get_floor_z() const {
|
|
|
return _floor_z;
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+
|
|
|
+*/
|
|
|
+INLINE PN_stdfloat ParticleSystem::
|
|
|
+get_tics_since_birth() const {
|
|
|
+ return _tics_since_birth;
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
|
|
|
*/
|