/// <summary> /// set crustaceanType /// </summary> public void setCrustaceanType(CrustaceanType ct) { crustaceanType = ct; }
/// <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; }