Ejemplo n.º 1
0
 /// <summary>
 /// The constructor creates a ZonedAction action for use by 
 /// an emitter. To add a ZonedAction to all particles created by an emitter, use the
 /// emitter's addAction method.
 /// 
 /// @see org.flintparticles.emitters.Emitter#addAction()
 /// </summary>
 /// <param name="action">The action to apply when inside the zone.</param>
 /// <param name="zone">The zone in which to apply the action.</param>
 /// <param name="invertZone">If false (the default) the action is applied only to particles inside 
 /// the zone. If true the action is applied only to particles outside the zone.</param>
 public ZonedAction(Behaviour action, IZone zone, bool invertZone)
 {
     m_action = action;
     m_zone = zone;
     m_invert = invertZone;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// The constructor creates a ZonedAction action for use by
 /// an emitter. To add a ZonedAction to all particles created by an emitter, use the
 /// emitter's addAction method.
 ///
 /// @see org.flintparticles.emitters.Emitter#addAction()
 /// </summary>
 /// <param name="action">The action to apply when inside the zone.</param>
 /// <param name="zone">The zone in which to apply the action.</param>
 /// <param name="invertZone">If false (the default) the action is applied only to particles inside
 /// the zone. If true the action is applied only to particles outside the zone.</param>
 public ZonedAction(Behaviour action, IZone zone, bool invertZone)
 {
     m_action = action;
     m_zone   = zone;
     m_invert = invertZone;
 }
Ejemplo n.º 3
0
 public ZonedAction(Behaviour action, IZone zone)
 {
     m_action = action;
     m_zone = zone;
     m_invert = false;
 }
Ejemplo n.º 4
0
 public ZonedAction(Behaviour action, IZone zone)
 {
     m_action = action;
     m_zone   = zone;
     m_invert = false;
 }