Exemple #1
0
 /// <summary>
 /// Gets an array of strings that contain information about the plant
 /// </summary>
 /// <param name="c">The plant to get information about</param>
 /// <returns>An array of strings containing a set of information about the plant</returns>
 public string[] getPlantInfo(Plant p)
 {
     string[] status = new string[1];
     switch (DataViewed)
     {
         case 0: status = new string[] { "Food Units Remaining: " + p.getFoodRemaining(), "Food value: " + p.getFoodValue(), "Regrows in: " + p.getTicksRemainingBeforeAction() + " ticks" }; break;
     }
     return status;
 }