コード例 #1
0
 /// <summary>
 /// set crustaceanType
 /// </summary>
 public void setCrustaceanType(CrustaceanType ct)
 {
     crustaceanType = ct;
 }
コード例 #2
0
 /// <summary>
 /// constructor
 /// </summary>
 public Crustacean(int xPos, int yPos, int theWidth, int theHeight, CrustaceanType theCrustaceanType)
     : base("Crustacean", xPos, yPos, theWidth, theHeight)  // appeasing the requirements of the base-class (MarineLife) constructor
 {
     crustaceanType = theCrustaceanType;
 }