package com.terry.engine.util {
	import com.terry.engine.*;

	public class ent_generic  {
		public function ent_generic() {
		}
		
		public function create(i:int, xp:Number, yp:Number, para1:String = "0", para2:String = "0", para3:String = "0"):void {
		}
		
		public function update(i:int):void {
		}
		
		public function animate(i:int):void {
		}
		
		public function draw(i:int):void {
		}
		
		public function drawinit(i:int, xoff:int, yoff:int, frame:int):void {
		}
		
		public function collision(i:int, j:int):void {
		}
		
		public function addpara1(t:String, f:int = -1):void {
			para1.push(t);
			if (f == -1) {
				para1_drawframe.push(init_drawframe);
			}else{ 
				para1_drawframe.push(f);
			}
		}
		
		public function addpara2(t:String, f:int = -1):void {
			para2.push(t);
			if (f == -1) {
				para2_drawframe.push(init_drawframe);
			}else{ 
				para2_drawframe.push(f);
			}
		}
		
		public function addpara3(t:String, f:int = -1):void {
			para3.push(t);
			if (f == -1) {
				para3_drawframe.push(init_drawframe);
			}else{ 
				para3_drawframe.push(f);
			}
		}
		
		public function setpara1selection(t:int):void {
			for (var i:int = 0; i < para1.length; i++) {
				if (obj.initentities[t].para1 == para1[i]) {
					obj.initentities[t].para1_selection = i;
				}
			}
		}
		
		public function setpara2selection(t:int):void {
			for (var i:int = 0; i < para2.length; i++) {
				if (obj.initentities[t].para2 == para2[i]) {
					obj.initentities[t].para2_selection = i;
				}
			}
		}
		
		public function setpara3selection(t:int):void {
			for (var i:int = 0; i < para3.length; i++) {
				if (obj.initentities[t].para3 == para3[i]) {
					obj.initentities[t].para3_selection = i;
				}
			}
		}
		
		public var name:String;
		public var init_drawframe:int;
		
		public var para1:Vector.<String> = new Vector.<String>;
		public var para2:Vector.<String> = new Vector.<String>;
		public var para3:Vector.<String> = new Vector.<String>;
		public var para1_name:String;
		public var para2_name:String;
		public var para3_name:String;
		public var para1_drawframe:Vector.<int> = new Vector.<int>;
		public var para2_drawframe:Vector.<int> = new Vector.<int>;
		public var para3_drawframe:Vector.<int> = new Vector.<int>;
	}
}