public FrogCard(int p_card_nbr, FrogPart p_top, FrogPart p_left, FrogPart p_right, FrogPart p_bottom) { _card_nbr = p_card_nbr; _rotations = 0; _top = p_top; _left = p_left; _right = p_right; _bottom = p_bottom; }
// Method to rotate the card 90 degress to the right public void RotateCard() { FrogPart temp_part = new FrogPart(); temp_part = _top; _top = _left; _left = _bottom; _bottom = _right; _right = temp_part; _rotations++; }