public Truck(TrashType type, int capacity, float consumption) { HandledResource = type; MaxCapacity = capacity; Capacity = capacity; Consumption = consumption; Travel = new Travel(); }
public Trash( TrashType trashtype, ParticleManagement particleManager) : base() { sinking = false; sinkableTrash = false; trashType = trashtype; this.particleManager = particleManager; lastAddToxicParticle = PoseidonGame.playTime.TotalMilliseconds; }
private string GetStringFromTrashType(TrashType tt) { if (tt == TrashType.Recyclable) { return(recyclableObjectName); } else { return(trashObjectName); } }
private void OnPickUpKeyEvent(KeyState pickUpState) { if (pickUpState == KeyState.KeyReleased) { myCurrentAnimationType = AnimationType.StopCrouching; } else if (pickUpState == KeyState.KeyHeld) { myRigidbody.velocity = new Vector2(0.0f, 0.0f); } else /* if is PickUpPressed */ { myCurrentAnimationType = AnimationType.StartCrouching; List <int> indicesToRemove = new List <int>(); int x = 0; foreach (string objName in inRangeRetrievableObjects) { if (currentlyHeldTrashType == TrashType.NotTrash) { currentlyHeldTrashType = (objName.Contains(trashObjectName)) ? TrashType.Trash : TrashType.Recyclable; currentlyHeldTextObject.GetComponent <Text>().text = objectTypePreString + GetStringFromTrashType(currentlyHeldTrashType); } if (objName.Contains(GetStringFromTrashType(currentlyHeldTrashType))) { GameObject gameObj = GameObject.Find(objName); Vector3 differenceVector = gameObj.transform.position - gameObject.transform.position; bool withinPickUppableDistance = differenceVector.magnitude < MAX_DISTANCE; if (withinPickUppableDistance) { gameObj.GetComponent <SpriteRenderer>().enabled = false; retrievableObjectsHeld.Add(objName); // TODO: Play sound effect for picked up an object here pickUpObjectSound.Play(); } indicesToRemove.Add(x); } x++; } for (x = indicesToRemove.Count - 1; x >= 0; x--) { inRangeRetrievableObjects.RemoveAt(indicesToRemove[x]); } } }
public Trash(GameObject gob, TrashType type, List <string> clean) { this.gob = gob; this.type = type; this.clean = clean; mRect = new Rectangle(0, 0, 1, 1); foreach (string i in clean) { if (i.Contains(gob.firsttexture + "temiz")) { gob.AssignSecondTexture(i); } } }
private void InitializeNextTrash() { Vector3 spawnPosition; while (!GetRandomSpawnPosition(out spawnPosition)) { } //will find a valid random spawn Position GameObject newTrash = Instantiate(trashPrefab, trashContainer.transform, true); trashesInMap.Add(newTrash); newTrash.transform.Translate(spawnPosition); TrashType randomType = (TrashType)Random.Range(0, 4); newTrash.GetComponent <TrashObject>().Initialize(new TrashInfo(randomType)); }
private void SetTrashType(Sprite currentSprite) { if (CompareSprite(currentSprite, 0) || CompareSprite(currentSprite, 3)) { trashType = TrashType.METAL; } else if (CompareSprite(currentSprite, 1) || CompareSprite(currentSprite, 2)) { trashType = TrashType.GLASS; } else if (CompareSprite(currentSprite, 4)) { trashType = TrashType.GENERIC; } }
public IEnumerator DisplayFeedback(TrashType givenBottleType) { titleCanvas.SetActive(true); if (givenBottleType == type && Label != null) { Label.GetComponentInChildren <Text>().text = "Correct!"; } else { Label.GetComponentInChildren <Text>().text = "Incorrect!"; } yield return(new WaitForSeconds(5.0f)); titleCanvas.SetActive(false); }
//know trashbin identity //check collided identity //if same, plus points //else minus public void OnCollisionEnter(Collision collision) { TrashType trashIdentity = collision.gameObject.GetComponent <TrashIdentity>().trashTypeIdentity; GameObject gameObjectThatCollided = collision.gameObject; if (trashIdentity != null) { switch (binTypeIdentity) { case BinType.Biodegradable: if (trashIdentity == TrashType.Biodegradable) { CorrectTrash(gameObjectThatCollided); } else { WrongTrash(gameObjectThatCollided); } break; case BinType.NonBiodegradable: if (trashIdentity == TrashType.NonBiodegradable) { CorrectTrash(gameObjectThatCollided); } else { WrongTrash(gameObjectThatCollided); } break; case BinType.Recyclable: if (trashIdentity == TrashType.Recyclable) { CorrectTrash(gameObjectThatCollided); } else { WrongTrash(gameObjectThatCollided); } break; } } }
// Update is called once per frame void Update() { if (!handlePhysics) { Physics2D.IgnoreLayerCollision(gameObject.layer, EnemyBehavior.enemyLayer); handlePhysics = true; } shootTrashTimer += Time.deltaTime; myPosition = gameObject.transform.position; UpdateMovement(); UpdateAnimation(); if (retrievableObjectsHeld.Count == 0) { currentlyHeldTrashType = TrashType.NotTrash; currentlyHeldTextObject.GetComponent <Text>().text = "Currently Holding: None"; } }
void CatchTrash(TrashType type) { if (trashes.Count == 0) { return; } Trash t = trashes[0]; if (t.type == type) { SoundManager.self.PlaySingle(clip); TrashCan trashCan = trashCans[(int)type]; trashCan.StartCoroutine(trashCan.ScaleEffect(trashCan.transform)); trashes.Remove(t); Destroy(t.gameObject); } }
public void Feed(TrashType fedType) { bool correct = false; foreach (var trashType in trashTypes) { if (trashType == fedType) { correct = true; } } if (correct) { CorrectFoodReaction(); } else { WrongFoodReaction(); } }
void Awake() { type = (TrashType)Random.Range(0, 4); rend = GetComponent <SpriteRenderer>(); if (type == TrashType.Can) { rend.sprite = cans[Random.Range(0, cans.Count)]; } if (type == TrashType.Pet) { rend.sprite = pets[Random.Range(0, pets.Count)]; } if (type == TrashType.Peper) { rend.sprite = pepers[Random.Range(0, pepers.Count)]; } if (type == TrashType.Vinyl) { rend.sprite = vinyls[Random.Range(0, vinyls.Count)]; } }
public void ChangeReticleText(GameObject current) { _reticleText.gameObject.SetActive(true); TrashType currentTrashType = current.GetComponent <TrashIdentity>().GetTrashTypeIdentity(); switch (currentTrashType) { case TrashType.Biodegradable: _reticleText.text = "Biodegradable"; break; case TrashType.NonBiodegradable: _reticleText.text = "NonBiodegradable"; break; case TrashType.Recyclable: _reticleText.text = "Recyclable"; break; default: ResetReticleText(); break; } }
public void UpdateLabel(TrashType givenBottleType) { StartCoroutine(DisplayFeedback(givenBottleType)); }
public TrashMonthInfo(TrashType trashType, DateTime date) { TrashType = trashType; Date = date; }
// ------------------------------------------------------------------- private void Start() { type = GetComponentInParent <TrashContainer>().type; }
public void setTrashType(TrashType aTrashType) { _trashType = aTrashType; }
/// Summary: /// Check if a garbage's type can be handled by this truck public bool CanHandle(TrashType ttype) { return((HandledResource & ttype) == ttype); }
/// <summary> /// Get trash list /// </summary> /// <param name="trashType">Type (post, page, comment)</param> /// <param name="take">Take for a page</param> /// <param name="skip">Items to sckip</param> /// <param name="filter">Filter expression</param> /// <param name="order">Sort order</param> /// <returns></returns> public TrashVM GetTrash(TrashType trashType, int take = 10, int skip = 0, string filter = "1 == 1", string order = "DateCreated descending") { if (!Security.IsAuthorizedTo(BlogEngine.Core.Rights.AccessAdminPages)) return new TrashVM(); var trash = new TrashVM(); var comments = new List<Comment>(); var posts = new List<Post>(); var pages = new List<Page>(); var trashList = new List<TrashItem>(); var trashPage = new List<TrashItem>(); var query = trashList.AsQueryable().Where(filter); // comments if (trashType == TrashType.All || trashType == TrashType.Comment) { foreach (var p in Post.Posts) { if (!Security.IsAuthorizedTo(BlogEngine.Core.Rights.EditOtherUsersPosts)) if (p.Author.ToLower() != Security.CurrentUser.Identity.Name.ToLower()) continue; comments.AddRange(p.DeletedComments); } } if (comments.Count > 0) { foreach (var c in comments) { TrashItem t1 = new TrashItem { Id = c.Id, Title = c.Author + ": " + c.Teaser, RelativeUrl = c.RelativeLink, ObjectType = "Comment", DateCreated = c.DateCreated.ToString("MM/dd/yyyy HH:mm") }; trashList.Add(t1); } } // posts if (trashType == TrashType.All || trashType == TrashType.Post) { posts = (from x in Post.DeletedPosts orderby x.DateCreated descending select x).ToList(); } if (posts.Count > 0) { foreach (var p in posts) { if (!Security.IsAuthorizedTo(BlogEngine.Core.Rights.EditOtherUsersPosts)) if (p.Author.ToLower() != Security.CurrentUser.Identity.Name.ToLower()) continue; TrashItem t2 = new TrashItem { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), RelativeUrl = p.RelativeLink, ObjectType = "Post", DateCreated = p.DateCreated.ToString("MM/dd/yyyy HH:mm") }; trashList.Add(t2); } } // pages if (trashType == TrashType.All || trashType == TrashType.Page) { pages = (from x in Page.DeletedPages orderby x.DateCreated descending select x).ToList(); } if (pages.Count > 0) { foreach (var p in pages) { TrashItem t3 = new TrashItem { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), RelativeUrl = p.RelativeLink, ObjectType = "Page", DateCreated = p.DateCreated.ToString("MM/dd/yyyy HH:mm") }; trashList.Add(t3); } } trash.TotalCount = trashList.Count; // if take passed in as 0, return all if (take == 0) take = trashList.Count; foreach (var item in query.OrderBy(order).Skip(skip).Take(take)) trashPage.Add(item); trash.Items = trashPage; return trash; }
public TrashInfo(TrashInfo trashInfo) { this.trashType = trashInfo.trashType; }
public TrashVM GetTrash(TrashType trashType, int take = 10, int skip = 0, string filter = "", string order = "") { return(new TrashVM()); }
/// <summary> /// Paged list of deleted objects /// </summary> /// <param name="trashType">Type of delted object</param> /// <param name="pageSize">Page size</param> /// <param name="page">Page number</param> /// <returns></returns> public static List <JsonTrash> GetTrash(TrashType trashType) { var comments = new List <Comment>(); var posts = new List <Post>(); var pages = new List <Page>(); var trashList = new List <JsonTrash>(); // comments if (trashType == TrashType.All || trashType == TrashType.Comment) { foreach (var p in Post.Posts) { comments.AddRange(p.DeletedComments); } } if (comments.Count > 0) { foreach (var c in comments) { JsonTrash t1 = new JsonTrash { Id = c.Id, Title = c.Title, ObjectType = "Comment", Date = c.DateCreated.ToString("dd MMM yyyy"), Time = c.DateCreated.ToString("t") }; trashList.Add(t1); } } // posts if (trashType == TrashType.All || trashType == TrashType.Post) { posts = (from x in Post.DeletedPosts orderby x.DateCreated descending select x).ToList(); } if (posts.Count > 0) { foreach (var p in posts) { JsonTrash t2 = new JsonTrash { Id = p.Id, Title = p.Title, ObjectType = "Post", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t2); } } // pages if (trashType == TrashType.All || trashType == TrashType.Page) { pages = (from x in Page.DeletedPages orderby x.DateCreated descending select x).ToList(); } if (pages.Count > 0) { foreach (var p in pages) { JsonTrash t3 = new JsonTrash { Id = p.Id, Title = p.Title, ObjectType = "Page", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t3); } } return(trashList); }
public Trash(TrashType t, int a) { this.Type = t; this.Amount = a; }
public void Setup(TrashType trash) { trash_type = trash; }
public Debris(string trashName, GameObject trash, TrashType trashType) { m_TrashName = trashName; m_Trash = trash; m_TrashType = trashType; }
public HouseTile(RoadType t, THouse ht, TrashType ttype, int quantity = 0) : base(t) { Garbage = new Trash(ttype, quantity); HouseType = ht; }
/// <summary> /// Paged list of deleted objects /// </summary> /// <param name="trashType">Type of delted object</param> /// <param name="page">Page number</param> /// <returns></returns> public static List <JsonTrash> GetTrash(TrashType trashType, int page) { var comments = new List <Comment>(); var posts = new List <Post>(); var pages = new List <Page>(); var trashList = new List <JsonTrash>(); currentPage = page; // comments if (trashType == TrashType.All || trashType == TrashType.Comment) { foreach (var p in Post.Posts) { comments.AddRange(p.DeletedComments); } } if (comments.Count > 0) { foreach (var c in comments) { JsonTrash t1 = new JsonTrash { Id = c.Id, Title = c.Title, ObjectType = "Comment", Date = c.DateCreated.ToString("dd MMM yyyy"), Time = c.DateCreated.ToString("t") }; trashList.Add(t1); } } // posts if (trashType == TrashType.All || trashType == TrashType.Post) { posts = (from x in Post.DeletedPosts orderby x.DateCreated descending select x).ToList(); } if (posts.Count > 0) { foreach (var p in posts) { JsonTrash t2 = new JsonTrash { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), ObjectType = "Post", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t2); } } // pages if (trashType == TrashType.All || trashType == TrashType.Page) { pages = (from x in Page.DeletedPages orderby x.DateCreated descending select x).ToList(); } if (pages.Count > 0) { foreach (var p in pages) { JsonTrash t3 = new JsonTrash { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), ObjectType = "Page", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t3); } } var pageSize = 20; listCount = trashList.Count; if (trashList.Count < pageSize) { return(trashList); } var skip = page == 1 ? 0 : page * pageSize - pageSize; var trashPage = trashList.Skip(skip).Take(pageSize).ToList(); return(trashPage); }
public TrashView(TrashType type, TrashController controller) { _sprite = Resources.Load <Sprite>("item_" + type.ToString()); _controller = controller; }
public TrashVM GetTrash(TrashType trashType, int take = 10, int skip = 0, string filter = "", string order = "") { return new TrashVM(); }
/// <summary> /// Paged list of deleted objects /// </summary> /// <param name="trashType">Type of delted object</param> /// <param name="pageSize">Page size</param> /// <param name="page">Page number</param> /// <returns></returns> public static List<JsonTrash> GetTrash(TrashType trashType) { var comments = new List<Comment>(); var posts = new List<Post>(); var pages = new List<Page>(); var trashList = new List<JsonTrash>(); // comments if (trashType == TrashType.All || trashType == TrashType.Comment) { foreach (var p in Post.Posts) { comments.AddRange(p.DeletedComments); } } if (comments.Count > 0) { foreach (var c in comments) { JsonTrash t1 = new JsonTrash { Id = c.Id, Title = c.Title, ObjectType = "Comment", Date = c.DateCreated.ToString("dd MMM yyyy"), Time = c.DateCreated.ToString("t") }; trashList.Add(t1); } } // posts if (trashType == TrashType.All || trashType == TrashType.Post) { posts = (from x in Post.DeletedPosts orderby x.DateCreated descending select x).ToList(); } if (posts.Count > 0) { foreach (var p in posts) { JsonTrash t2 = new JsonTrash { Id = p.Id, Title = p.Title, ObjectType = "Post", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t2); } } // pages if (trashType == TrashType.All || trashType == TrashType.Page) { pages = (from x in Page.DeletedPages orderby x.DateCreated descending select x).ToList(); } if (pages.Count > 0) { foreach (var p in pages) { JsonTrash t3 = new JsonTrash { Id = p.Id, Title = p.Title, ObjectType = "Page", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t3); } } return trashList; }
/// <summary> /// Get trash list /// </summary> /// <param name="trashType">Type (post, page, comment)</param> /// <param name="take">Take for a page</param> /// <param name="skip">Items to sckip</param> /// <param name="filter">Filter expression</param> /// <param name="order">Sort order</param> /// <returns></returns> public TrashVM GetTrash(TrashType trashType, int take = 10, int skip = 0, string filter = "1 == 1", string order = "DateCreated descending") { if (!Security.IsAuthorizedTo(Rights.ViewDashboard)) { throw new UnauthorizedAccessException(); } var trash = new TrashVM(); var comments = new List <Comment>(); var posts = new List <Post>(); var pages = new List <Page>(); var trashList = new List <TrashItem>(); var trashPage = new List <TrashItem>(); var query = trashList.AsQueryable().Where(filter); // comments if (trashType == TrashType.All || trashType == TrashType.Comment) { foreach (var p in Post.Posts) { if (!Security.IsAuthorizedTo(Rights.EditOtherUsersPosts)) { if (p.Author.ToLower() != Security.CurrentUser.Identity.Name.ToLower()) { continue; } } comments.AddRange(p.DeletedComments); } } if (comments.Count > 0) { foreach (var c in comments) { TrashItem t1 = new TrashItem { Id = c.Id, Title = c.Author + ": " + c.Teaser, RelativeUrl = c.RelativeLink, ObjectType = "Comment", DateCreated = c.DateCreated.ToString("MM/dd/yyyy HH:mm") }; trashList.Add(t1); } } // posts if (trashType == TrashType.All || trashType == TrashType.Post) { posts = (from x in Post.DeletedPosts orderby x.DateCreated descending select x).ToList(); } if (posts.Count > 0) { foreach (var p in posts) { if (!Security.IsAuthorizedTo(Rights.EditOtherUsersPosts)) { if (p.Author.ToLower() != Security.CurrentUser.Identity.Name.ToLower()) { continue; } } TrashItem t2 = new TrashItem { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), RelativeUrl = p.RelativeLink, ObjectType = "Post", DateCreated = p.DateCreated.ToString("MM/dd/yyyy HH:mm") }; trashList.Add(t2); } } // pages if (trashType == TrashType.All || trashType == TrashType.Page) { pages = (from x in Page.DeletedPages orderby x.DateCreated descending select x).ToList(); } if (pages.Count > 0) { foreach (var p in pages) { TrashItem t3 = new TrashItem { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), RelativeUrl = p.RelativeLink, ObjectType = "Page", DateCreated = p.DateCreated.ToString("MM/dd/yyyy HH:mm") }; trashList.Add(t3); } } trash.TotalCount = trashList.Count; // if take passed in as 0, return all if (take == 0) { take = trashList.Count; } foreach (var item in query.OrderBy(order).Skip(skip).Take(take)) { trashPage.Add(item); } trash.Items = trashPage; return(trash); }
public void setBinType(TrashType aBinType) { _binType = aBinType; }
/// <summary> /// Paged list of deleted objects /// </summary> /// <param name="trashType">Type of delted object</param> /// <param name="page">Page number</param> /// <returns></returns> public static List<JsonTrash> GetTrash(TrashType trashType, int page) { var comments = new List<Comment>(); var posts = new List<Post>(); var pages = new List<Page>(); var trashList = new List<JsonTrash>(); currentPage = page; // comments if (trashType == TrashType.All || trashType == TrashType.Comment) { foreach (var p in Post.Posts) { comments.AddRange(p.DeletedComments); } } if (comments.Count > 0) { foreach (var c in comments) { JsonTrash t1 = new JsonTrash { Id = c.Id, Title = c.Title, ObjectType = "Comment", Date = c.DateCreated.ToString("dd MMM yyyy"), Time = c.DateCreated.ToString("t") }; trashList.Add(t1); } } // posts if (trashType == TrashType.All || trashType == TrashType.Post) { posts = (from x in Post.DeletedPosts orderby x.DateCreated descending select x).ToList(); } if (posts.Count > 0) { foreach (var p in posts) { JsonTrash t2 = new JsonTrash { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), ObjectType = "Post", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t2); } } // pages if (trashType == TrashType.All || trashType == TrashType.Page) { pages = (from x in Page.DeletedPages orderby x.DateCreated descending select x).ToList(); } if (pages.Count > 0) { foreach (var p in pages) { JsonTrash t3 = new JsonTrash { Id = p.Id, Title = System.Web.HttpContext.Current.Server.HtmlEncode(p.Title), ObjectType = "Page", Date = p.DateCreated.ToString("dd MMM yyyy"), Time = p.DateCreated.ToString("t") }; trashList.Add(t3); } } var pageSize = 20; listCount = trashList.Count; if (trashList.Count < pageSize) return trashList; var skip = page == 1 ? 0 : page * pageSize - pageSize; var trashPage = trashList.Skip(skip).Take(pageSize).ToList(); return trashPage; }
public Truck(TrashType type, int capacity, float consumption) { HandledResource = type; Capacity = capacity; Consumption = consumption; }
// Update is called once per frame void Update() { GameObject[] respawns = GameObject.FindGameObjectsWithTag("TRASH"); if (main_game_handler.game_timer % spawnMod == 0 && main_game_handler.game_started && respawns.Length < 5) { Debug.Log("game spawning animals"); // add new sea animal Vector2 random = Random.insideUnitCircle; //Debug.Log(random); // Trash temp = new Trash(); //create new sea animal ////set up sea animal TrashType trash = (TrashType)(random.x * (float)TrashType.NUM_TRASHTYPE); Vector3 position = new Vector3(random.x * 3, 0, random.y * 3); float EPSILON = 0; if (System.Math.Abs(position.x) < EPSILON) { position.x = 1; } else if (System.Math.Abs(position.y) < EPSILON) { position.z = 1; } switch (trash) { case TrashType.CAN1: GameObject can_go = Instantiate(can1, position, Quaternion.identity); can_go.gameObject.tag = "TRASH"; break; case TrashType.CAN2: GameObject can_go2 = Instantiate(can2, position, Quaternion.identity); can_go2.gameObject.tag = "TRASH"; break; case TrashType.SMALL: GameObject can_go3 = Instantiate(can_small, position, Quaternion.identity); can_go3.gameObject.tag = "TRASH"; break; case TrashType.TALL1: GameObject can_go4 = Instantiate(can_tall1, position, Quaternion.identity); can_go4.gameObject.tag = "TRASH"; break; case TrashType.TALL2: GameObject can_go5 = Instantiate(can_tall2, position, Quaternion.identity); can_go5.gameObject.tag = "TRASH"; break; case TrashType.MEAT1: GameObject can_go6 = Instantiate(meat_can1, position, Quaternion.identity); can_go6.gameObject.tag = "TRASH"; break; case TrashType.MEAT2: GameObject can_go7 = Instantiate(meat_can2, position, Quaternion.identity); can_go7.gameObject.tag = "TRASH"; break; case TrashType.MEAT3: GameObject can_go8 = Instantiate(meat_can3, position, Quaternion.identity); can_go8.gameObject.tag = "TRASH"; break; case TrashType.SODA: GameObject can_go9 = Instantiate(can_soda, position, Quaternion.identity); can_go9.gameObject.tag = "TRASH"; break; case TrashType.SPAM: GameObject can_go10 = Instantiate(can_spam, position, Quaternion.identity); can_go10.gameObject.tag = "TRASH"; break; default: Debug.Log("Should not reach this case"); break; } } }
public bool CanHandle(TrashType ttype) { return (HandledResource & ttype) == ttype; }
public void InitService(TrashType trashType) { _trashService = new TrashService(trashType, this); }
public TrashInfo(TrashType trashType) { this.trashType = trashType; }