Beispiel #1
0
 /// <summary>
 /// set whaleType
 /// </summary>
 public void setWhaleType(WhaleType wt)
 {
     whaleType = wt;
 }
Beispiel #2
0
 /// <summary>
 /// constructor
 /// </summary>
 public Whale(int xPos, int yPos, int theWidth, int theHeight, WhaleType theWhaleType)
     : base("Whale", xPos, yPos, theWidth, theHeight)  // appeasing the requirements of the base-class (MarineLife) constructor
 {
     whaleType = theWhaleType;
 }