public Color GetColor(jumperBody bodyPart) { switch (bodyPart) { case jumperBody.LowerArm: return(_lowerArm); case jumperBody.Head: return(_head); case jumperBody.Body: return(_body); case jumperBody.UpperArm: return(_upperArm); case jumperBody.Hand: return(_hand); case jumperBody.UpperLeg: return(_upperLeg); case jumperBody.LowerLeg: return(_lowerLeg); case jumperBody.Foot: return(_foot); case jumperBody.Ski: return(_ski); default: return(Color.black); } }
public void SetColor(jumperBody bodyPart, Color newColor) { switch (bodyPart) { case jumperBody.LowerArm: _lowerArm = newColor; break; case jumperBody.Head: _head = newColor; break; case jumperBody.Body: _body = newColor; break; case jumperBody.UpperArm: _upperArm = newColor; break; case jumperBody.Hand: _hand = newColor; break; case jumperBody.UpperLeg: _upperLeg = newColor; break; case jumperBody.LowerLeg: _lowerLeg = newColor; break; case jumperBody.Foot: _foot = newColor; break; case jumperBody.Ski: _ski = newColor; break; default: break; } }