PassengerClass CRoomFlags::whatPassengerClass(int floorNum) { if (is2To19(floorNum)) return FIRST_CLASS; return is20To27(floorNum) ? SECOND_CLASS : THIRD_CLASS; }
int CRoomFlags::whatPassengerClass(int floorNum) { if (is2To19(floorNum)) return 1; return is20To27(floorNum) ? 2 : 3; }