public MushroomSprite(int positionX, int positionY, MushroomType mushroomType) { Location = new Vector2(positionX, positionY); WidthHeight = new Vector2(ItemSpriteFactory.ITEM_WIDTH, ItemSpriteFactory.ITEM_HEIGHT); Boundary = new Rectangle((int)Location.X, (int)Location.Y, (int)WidthHeight.X, (int)WidthHeight.Y); type = mushroomType; currentFrame = ItemSpriteFactory.Mushroom(type); if (mushroomType.Equals(MushroomType.Super)) { EntityType = TileMapInterpreter.Entities.SUPER_MUSHROOM; } else { EntityType = TileMapInterpreter.Entities.UP_MUSHROOM; } IsBounded = false; }