package scripts;

import com.stencyl.graphics.G;
import com.stencyl.graphics.BitmapWrapper;
import com.stencyl.graphics.ScaleMode;

import com.stencyl.behavior.Script;
import com.stencyl.behavior.Script.*;
import com.stencyl.behavior.ActorScript;
import com.stencyl.behavior.SceneScript;
import com.stencyl.behavior.TimedTask;

import com.stencyl.models.Actor;
import com.stencyl.models.GameModel;
import com.stencyl.models.actor.Animation;
import com.stencyl.models.actor.ActorType;
import com.stencyl.models.actor.Collision;
import com.stencyl.models.actor.Group;
import com.stencyl.models.Scene;
import com.stencyl.models.Sound;
import com.stencyl.models.Region;
import com.stencyl.models.Font;
import com.stencyl.models.Joystick;

import com.stencyl.Config;
import com.stencyl.Engine;
import com.stencyl.Input;
import com.stencyl.Key;
import com.stencyl.utils.motion.*;
import com.stencyl.utils.Utils;

import openfl.ui.Mouse;
import openfl.display.Graphics;
import openfl.display.BlendMode;
import openfl.display.BitmapData;
import openfl.display.Bitmap;
import openfl.events.Event;
import openfl.events.KeyboardEvent;
import openfl.events.TouchEvent;
import openfl.net.URLLoader;

import box2D.common.math.B2Vec2;
import box2D.dynamics.B2Body;
import box2D.dynamics.B2Fixture;
import box2D.dynamics.joints.B2Joint;

import com.stencyl.graphics.shaders.BasicShader;
import com.stencyl.graphics.shaders.GrayscaleShader;
import com.stencyl.graphics.shaders.SepiaShader;
import com.stencyl.graphics.shaders.InvertShader;
import com.stencyl.graphics.shaders.GrainShader;
import com.stencyl.graphics.shaders.ExternalShader;
import com.stencyl.graphics.shaders.InlineShader;
import com.stencyl.graphics.shaders.BlurShader;
import com.stencyl.graphics.shaders.SharpenShader;
import com.stencyl.graphics.shaders.ScanlineShader;
import com.stencyl.graphics.shaders.CSBShader;
import com.stencyl.graphics.shaders.HueShader;
import com.stencyl.graphics.shaders.TintShader;
import com.stencyl.graphics.shaders.BloomShader;



class Design_9_9_CollisionsSounds extends ActorScript
{
	public var _oldxv:Float;
	public var _oldyv:Float;
	public var _Damage:Float;
	public var _SoundtoPlay:Sound;
	public var _MinimumSoundThreshold:Float;
	public var _Timedelaybetweensounds:Float;
	public var _CanPlay:Bool;
	public var _NumberofsoundstoPlay:Float;
	public var _SoundtoPlay2:Sound;
	public var _SoundtoPlay3:Sound;
	public var _randsound:Float;
	
	
	public function new(dummy:Int, actor:Actor, dummy2:Engine)
	{
		super(actor);
		nameMap.set("Actor", "actor");
		nameMap.set("oldxv", "_oldxv");
		_oldxv = 0.0;
		nameMap.set("oldyv", "_oldyv");
		_oldyv = 0.0;
		nameMap.set("Damage", "_Damage");
		_Damage = 0.0;
		nameMap.set("Sound to Play 1", "_SoundtoPlay");
		nameMap.set("Minimum Sound Threshold", "_MinimumSoundThreshold");
		_MinimumSoundThreshold = 10.0;
		nameMap.set("Time delay between sounds", "_Timedelaybetweensounds");
		_Timedelaybetweensounds = 0.5;
		nameMap.set("Can Play?", "_CanPlay");
		_CanPlay = true;
		nameMap.set("Number of sounds to Play?", "_NumberofsoundstoPlay");
		_NumberofsoundstoPlay = 1.0;
		nameMap.set("Sound to Play 2", "_SoundtoPlay2");
		nameMap.set("Sound to Play 3", "_SoundtoPlay3");
		nameMap.set("randsound", "_randsound");
		_randsound = 0.0;
		
	}
	
	override public function init()
	{
		
	}
	
	override public function forwardMessage(msg:String)
	{
		
	}
}