-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCorn.cs
More file actions
29 lines (28 loc) · 670 Bytes
/
Copy pathCorn.cs
File metadata and controls
29 lines (28 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//daniel kim
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SimFarm
{
/// <summary>
/// Corn is an Annual Plant product
/// </summary>
class Corn : AnnualPlant
{
/// <summary>
/// create's a corn plant.
/// </summary>
public Corn()
{
ProductImage = Properties.Resources.corn;
MarketPrice = numberGenerator.Next(5000, 7001);
PurchaseCost = 500;
BreedingTime = 2;
UpkeepCost = 500;
MaxLifespan = 3;
AssignQualityRating();
CanHarvest = false;
}
}
}