Capital ships may have rooms with exterior hatchways large enough to permit smaller ships to enter and transfer cargo and passengers. These bays are generally classified as either hangar bays, docking bays, or cargo bays.
Hangar bays are usually smaller, although on carriers they may be very wide to accommodate multiple craft. Their purpose is to house smaller spacecraft such as fighters, shuttles, and transports. They are normally pressurized when the hatchway is sealed, and artificial gravity activated, and on more advanced craft may have a shield barrier to maintain pressure even when the hatchway is open. An advantage of a hangar bay's atmosphere and gravity is that personnel benefit from greater accessibility in a simulated surface environment.
Docking bays are much larger to accommodate larger craft such as corvettes and even frigates. These bays may have exterior hatchways, but often do not, and consequently are never pressurized. Instead, docking bays have articulating gangways with docking rings, as well as magnetic moorings. While never as well protected as a hangar bay, it is a convenient berth for smaller capital ships when cargo or personnel transfer would otherwise require multiple trips for more vulnerable transports or shuttles.
Cargo bays are large storage spaces that may have a large hatch for easy transfer of goods. These bays are characterized by systems of mounting and securing cargo against extreme acceleration, sealing them against vacuum and radiation, and the presence of robotic manipulators or vehicles for moving cargo. Cargo bays are often supplemented by pressurized cargo holds deeper in a spacecraft where crew can access goods without exposure to vacuum.
Docking rings are standardized hatchways that allow access to the interior of a spacecraft. There are several classifications based on size, ranging from the smallest rings which allow only single personnel or small items through, to the largest which are wide enough to allow vehicles. While docking rings, as the name suggests, are normally used to communicate goods or personnel between two adjacent spacecraft without exposure to vacuum, they can also be opened directly to space to allow crew to perform space walks. Any two docking rings can connect regardless of their size classification, however the opening is only ever as large as the smallest ring's classification. Most rings can be extended with a telescoping tunnel, as well as bend at reinforced joints to accommodate tricky docking maneuvers.
Airlocks are chambers connected to docking rings. They have two doors, one which communicates to the interior of the spacecraft, the other is the docking ring. Airlocks serve several purposes. First, they prevent any loss in interior pressure when the docking ring is opened. Second, they allow a staging area where pressure can be controlled to match a particular environment. Third, they serve as a security feature. Although the standardization of docking rings makes them difficult to lock to prevent access, the interior door of an airlock is often the strongest and most difficult place for hostile invaders to breach. Finally, they can serve as emergency ventilation. Normally, only the hatch or the interior door may be open at any time, however, by activating the emergency override, a spacecraft's interior can be exposed directly to the vacuum of space. This can help to extinguish interior fire or ventilate toxins, however this rapid depressurization can also suck crew or goods into space as well, and is only advisable in extreme circumstances.
On a similarly gruesome note, airlocks are often used for informal executions, since it conveniently serves as a prison cell, cause of death, and method of disposing the body.
Class A - 1.5 meters wide, designed to allow crawling personnel or small cargo one at a time. Most commonly found on small vehicles and fighter craft.
Class B - 3 meters wide, allows standing personnel, small utility vehicles, or cargo. Most commonly found on shuttles and transports.
Class C - 6 meters wide, allows several personnel at a time, medium vehicles such as surface cars, industrial equipment, or heavy cargo. Found on most spacecraft capable of zipp space travel.
Class D - 20 meters wide, allows for transfer of large vehicles, prefabricated structures,. Rarely found except on capital ships or luxury cruisers, since its only advantage over cargo hatches is keeping atmospheric pressure.
Sometimes called emergency hatches, blast doors, or shutters, bulkheads are doors, hatches, and barriers that can isolate areas of the ship from fire, toxins, or decompression. While bulkheads may appear as nothing more than a normal interior hatch, during a situation where a significant hazard inside a ship, a bulkhead will automatically shut with tremendous force and remain sealed until conditions are restored or it is otherwise manually opened. Bulkheads can be triggered manually as well. Beware that bulkheads are kept under tension by powered systems, so in the event of a catastrophic power-failure, tend to shut even without detecting a hazardous situation. Bulkheads also refer to large sections of reinforced hull that protect the integrity of certain interior sections of a ship such as bridge, engine room, or hangar bays, from damage, radiation, or decompression.
Viewports are windows built into the exterior hull of a spacecraft. Their purpose is to provide visual access for the crew, or allow natural light into the craft's interior. Because of the liability posed by viewports for the interior pressure, they use multiple layers of flexible resnal that is resistant to extreme pressure differences and structural stress. Even with this precaution, viewports are extremely rare on most spacecraft, and are usually only included for luxury craft, or for craft that need precise manual piloting or other operation where sensors are insufficient.
Early spacecraft used glass plating for viewports, but its brittle properties meant that even small breaches would spread as cracks through the rest of the material, and potentially turn into jagged fragments which posed additional hazards. Resnal is flexible and ductile and easily replaced by a ship's workshop.