<commit_before>package org.flixel.addons;

import org.flixel.FlxEmitter;
import org.flixel.FlxG;
import org.flixel.FlxParticle;
import org.flixel.util.FlxRandom;

/**
 * Extended FlxEmitter that emits particles in a circle (instead of a square).
 * It also provides a new function setMotion to control particle behavior even more.
 * This was inspired by the way Chevy Ray Johnston implemented his particle emitter in Flashpunk.
 * @author <NAME>
 */
class FlxEmitterExt extends FlxEmitter 
{		
	/**
	 * 	Launch Direction.
	 */
	public var angle:Float;
	
	/**
	 * 	Distance to travel.
	 */
	public var distance:Float;
	
	/**
	 * 	Random amount to add to the particle's direction.
	 */
	public var angleRange:Float;
	
	/**
	 * 	Random amount to add to the particle's distance.
	 */<commit_msg>added FlxTypedEmitterExt - issue #430<commit_after>package org.flixel.addons;

import org.flixel.FlxEmitter;
import org.flixel.FlxG;
import org.flixel.FlxParticle;
import org.flixel.util.FlxRandom;

class FlxEmitterExt extends FlxTypedEmitterExt<FlxParticle>
{
	public function new(X:Float = 0, Y:Float = 0, Size:Int = 0)
	{
		super(X, Y, Size);
	}
}

/**
 * Extended FlxEmitter that emits particles in a circle (instead of a square).
 * It also provides a new function setMotion to control particle behavior even more.
 * This was inspired by the way Chevy Ray Johnston implemented his particle emitter in Flashpunk.
 * @author <NAME>
 */
class FlxTypedEmitterExt<T:FlxParticle> extends FlxTypedEmitter<FlxParticle> 
{		
	/**
	 * 	Launch Direction.
	 */
	public var angle:Float;
	
	/**
	 * 	Distance to travel.
	 */
	public var distance:Float;
	
	/**
	 * 	Random amount to add to the particle's direction.
	 */
	public var angleRange:Float;
	
	/**
	 * 	Random amount to add to the particle's distance.
	 */
{'fraction_non_alphanumeric': 0.09672040022234575, 'fraction_numerical': 0.0033351862145636463, 'mean_word_length': 3.6875, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6598691', 'n_tokens_mistral': 620, 'n_tokens_neox': 568, 'n_words': 190}