The Rm class is the class for rooms. Each room in your game is built of an instance of this class..
Sets up the room object.
sets up the number and controls properties, and the global variable gPicAngle to the picAngle property. It draws it's picture if specified. It then sets up the ego's position based on the edge hit. Finally, it's sets it's edge hit to EDGE_NONE.
It disposes all the addToPic elements, sets the global gOverlay to -1 and sets it's curPic property to picNum. If picAni is specified, it draws the picture, clearing the screen first with the picAni animation and gDefaultPalette as it's palette. Otherwise, if the style property is not -1, it draws the picture, clearing the screen first with the style animation and gDefaultPalette as it's palette. Otherwise, if the style property is -1, it draws the picture, clearing the screen first with gDefaultPicAni as it's animation and gDefaultPalette as it's palette.
It sets the global gOverlay to picNum. If picAni is specified, it draws the picture, without clearing the screen first with the picAni animation and gDefaultPalette as it's palette. Otherwise, if the style property is not -1, it draws the picture, without clearing the screen first with the style animation and gDefaultPalette as it's palette. Otherwise, if the style property is -1, it draws the picture, without clearing the screen first with gDefaultPicAni as it's animation and gDefaultPalette as it's palette.