public string Move(Environment moveType) { string output = string.Empty; if (moveType == Environment.Air) { return(this.Fly()); } else { output = Name + " is a Crow and can't move in " + moveType.ToString() + " environment"; return(output); } }
public string Move(Environment moveType) { string output = string.Empty; if (moveType == Environment.Land) { return(this.Crawl()); } else { output = Name + " is a Snake and can't move in " + moveType.ToString() + " environment"; return(output); } }
public string Move(Environment moveType) { if (moveType == Environment.Land) { return(this.Walk()); } else if (moveType == Environment.Air) { return(this.Fly()); } else { string output = Name + " is a Partridge and can't move in " + moveType.ToString() + " environment"; return(output); } }
public string Move(Environment moveType) { if (moveType == Environment.Land) { return(this.Walk()); } else if (moveType == Environment.Watery) { return(this.Swim()); } else { string output = Name + " is a Frog and can't move in " + moveType.ToString() + " environment"; return(output); } }