package gamecontrol {
	import flash.display.*;
	import flash.geom.*;
  import flash.events.*;
  import flash.net.*;
	import com.terry.engine.*;
	import flash.text.TextField;
	
	public class itemclass {
		public function itemclass() {
		}
		
		public function create(t:String):void {
			name = t;
			usedingame = true;
			iscat = false;
			insuitcase = false;
			returntoinitposition = false;
			placedinsuitcase = false;
			binit = false;
			cannotbin = false;
			highlight = false;
			trashed = false;
			
			//Generated properties
			if (t == "cat"){
				position.setTo(11, 199);
				size.setTo(2, 2);
				tile = 20;
				minisize.setTo(1, 1);
				minitile = 498;
			}else if (t == "passport"){
				position.setTo(68, 121);
				size.setTo(1, 2);
				tile = 73;
				minisize.setTo(1, 1);
				minitile = 510;
			}else if (t == "travelcard"){
				position.setTo(264, 83);
				size.setTo(1, 1);
				tile = 10;
				minisize.setTo(1, 1);
				minitile = 491;
			}else if (t == "smalldildo"){
				position.setTo(61.5, 163);
				size.setTo(2, 1);
				tile = 71;
				minisize.setTo(1, 1);
				minitile = 511;
			}else if (t == "fork"){
				position.setTo(335, 25);
				size.setTo(1, 1);
				tile = 5;
				minisize.setTo(1, 1);
				minitile = 512;
			}else if (t == "knife"){
				position.setTo(351, 32);
				size.setTo(1, 1);
				tile = 6;
				minisize.setTo(1, 1);
				minitile = 513;
			}else if (t == "hand"){
				position.setTo(288, 65);
				size.setTo(1, 1);
				tile = 13;
				minisize.setTo(1, 1);
				minitile = 490;
			}else if (t == "bottle"){
				position.setTo(95, 144);
				size.setTo(2, 2);
				tile = 350;
				minisize.setTo(1, 1);
				minitile = 489;
			}else if (t == "gun"){
				position.setTo(109, 214);
				size.setTo(2, 1);
				tile = 91;
				minisize.setTo(1, 1);
				minitile = 494;
			}else if (t == "mug"){
				position.setTo(284, 90);
				size.setTo(2, 1);
				tile = 11;
				minisize.setTo(1, 1);
				minitile = 493;
			}else if (t == "earplugs"){
				position.setTo(295, 111);
				size.setTo(1, 1);
				tile = 300;
				minisize.setTo(1, 1);
				minitile = 516;
			}else if (t == "mouse"){
				position.setTo(64, 211);
				size.setTo(2, 1);
				tile = 8;
				minisize.setTo(1, 1);
				minitile = 492;
			}else if (t == "book"){
				position.setTo(38, 164);
				size.setTo(1, 2);
				tile = 70;
				minisize.setTo(1, 1);
				minitile = 508;
			}else if (t == "chocolate"){
				position.setTo(92.5, 121);
				size.setTo(2, 1);
				tile = 320;
				minisize.setTo(1, 1);
				minitile = 514;
			}else if (t == "postit"){
				position.setTo(15, 169);
				size.setTo(1, 2);
				tile = 74;
				minisize.setTo(1, 1);
				minitile = 574;
			}else if (t == "razor"){
				position.setTo(260.5, 36.5);
				size.setTo(1, 2);
				tile = 281;
				minisize.setTo(1, 1);
				minitile = 497;
			}else if (t == "scarf"){
				position.setTo(11.5, 136.5);
				size.setTo(3, 1);
				tile = 2;
				minisize.setTo(2, 1);
				minitile = 495;
			}else if (t == "picture"){
				position.setTo(80, 180);
				size.setTo(2, 2);
				tile = 38;
				minisize.setTo(1, 1);
				minitile = 488;
			}else if (t == "teddy"){
				position.setTo(259, 113);
				size.setTo(2, 2);
				tile = 100;
				minisize.setTo(1, 1);
				minitile = 509;
			}else if (t == "ukelele"){
				position.setTo(280, 22.5);
				size.setTo(3, 2);
				tile = 75;
				minisize.setTo(2, 1);
				minitile = 517;
			}else if (t == "suit1"){
				position.setTo(261, 169);
				size.setTo(2, 3);
				tile = 108;
				minisize.setTo(1, 2);
				minitile = 534;
			}else if (t == "suit2"){
				position.setTo(294, 158);
				size.setTo(2, 3);
				tile = 168;
				minisize.setTo(1, 2);
				minitile = 535;
			}else if (t == "normalclothes"){
				position.setTo(313, 54);
				size.setTo(3, 6);
				tile = 102;
				minisize.setTo(1, 3);
				minitile = 536;
			}else if (t == "partyclothes"){
				position.setTo(79.5, 17.5);
				size.setTo(3, 6);
				tile = 105;
				minisize.setTo(1, 3);
				minitile = 537;
			}else if (t == "sunflower"){
				position.setTo(24, 13);
				size.setTo(2, 7);
				tile = 140;
				minisize.setTo(1, 4);
				minitile = 538;
			}
			
			initposition.setTo(position.x, position.y);
			
      //Special Case properties
			if (t == "passport"){
				printedname = "Passport";
				bintile = 0;
				
				cannotbin = true;
			}else if (t == "travelcard"){
				printedname = "Travel Card";
				bintile = 174;
			}else if (t == "chocolate"){
				printedname = "Chocolate";
				bintile = 388;
			}else if (t == "razor"){
				printedname = "Razor";
				bintile = 408;
			}else if (t == "smalldildo"){
				printedname = "Everyday Dildo";
				bintile = 172;
			}else if (t == "fork"){
				printedname = "Fork";
				bintile = 138;
			}else if (t == "knife"){
				printedname = "Knife";
				bintile = 158;
			}else if (t == "mug"){
				printedname = "Mug";
				bintile = 178;
			}else if (t == "hand"){
				printedname = "Severed Hand";
				bintile = 288;
			}else if (t == "bottle"){
				printedname = "Bottle of Urine";
				bintile = 308;
			}else if (t == "gun"){
				printedname = "Handgun";
				bintile = 328;
			}else if (t == "earplugs"){
				printedname = "Earplugs";
				bintile = 368;
			}else if (t == "medicine"){
				printedname = "medicine";
				bintile = 348;
				
				usedingame = false;
			}else if (t == "postit"){
				printedname = "Post-It Notes";
				bintile = 692;
			}else if (t == "mouse"){
				printedname = "Cat Toy";
				bintile = 176;
			}else if (t == "book"){
				printedname = "Book";
				bintile = 112;
			}else if (t == "scarf"){
				printedname = "'s Scarf";
				bintile = 118;
			}else if (t == "cat"){
				printedname = control.catname;
				bintile = 0;
				
				iscat = true;
			}else if (t == "picture"){
				printedname = "Family Photo";
				bintile = 170;
			}else if (t == "teddy"){
				printedname = "Mr. Snuggles";
				bintile = 136;
			}else if (t == "ukelele"){
				printedname = "Ukulele";
				bintile = 132;
			}else if (t == "suit1"){
				printedname = "Suit";
				bintile = 114;
			}else if (t == "suit2"){
				printedname = "Suit";
				bintile = 134;
			}else if (t == "largedildo"){
				printedname = "Party Dildo";
				bintile = 152;
				
				usedingame = false;
			}else if (t == "normalclothes"){
				printedname = "Everyday Clothes";
				bintile = 116;
			}else if (t == "partyclothes"){
				printedname = "Party Clothes";
				bintile = 154;
			}else if (t == "sunflower"){
				printedname = "Flower";
				bintile = 156;
			}
		}
		
		public var name:String;
		public var printedname:String;
		public var usedingame:Boolean;
		public var size:Point = new Point;
		public var tile:int;
		public var minitile:int;
		public var minisize:Point = new Point;
		public var position:Point = new Point;
		public var initposition:Point = new Point;
		public var returntoinitposition:Boolean;
		public var bintile:int;
		public var placedinsuitcase:Boolean;
		
		public var highlight:Boolean;
		
		public var iscat:Boolean;
		public var insuitcase:Boolean;
		public var binit:Boolean;
		public var trashed:Boolean;
		
		public var cannotbin:Boolean;
	}
}