Quoting California Penal Code, Sec. 459.
Every person who enters any house, room, apartment, tenement,shop, warehouse, store, mill, barn, stable, outhouse or otherbuilding, tent, vessel, as defined in Section 21 of the Harbors andNavigation Code, floating home, as defined in subdivision (d) ofSection 18075.55 of the Health and Safety Code, railroad car, lockedor sealed cargo container, whether or not mounted on a vehicle,trailer coach, as defined in Section 635 of the Vehicle Code, anyhouse car, as defined in Section 362 of the Vehicle Code, inhabitedcamper, as defined in Section 243 of the Vehicle Code, vehicle asdefined by the Vehicle Code, when the doors are locked, aircraft asdefined by Section 21012 of the Public Utilities Code, or mine or anyunderground portion thereof, with intent to commit grand or petitlarceny or any felony is guilty of burglary. As used in this chapter,"inhabited" means currently being used for dwelling purposes,whether occupied or not. A house, trailer, vessel designed forhabitation, or portion of a building is currently being used fordwelling purposes if, at the time of the burglary, it was notoccupied solely because a natural or other disaster caused theoccupants to leave the premises.