Class: Door (of Prop)

The Door class is a prop class which handles all the door related functions. It saves a lot of time when using doors.

There are a number of properties you can set to get your door working. Three, (doorCtrl, roomCtrl and doorBlock) deal with the control screen. These specify the color used in the control screen for the door events. For example, if ego is on an area of the control screen with blue pixels and the roomCtrl is set to $0200 (blue's identifier), then it realizes that the ego has "gone through the door" and will go to the room specified by entranceTo. For more information on each color's identifier, read the kernel OnControl()'s documentation. Since a door event is set when the user if on a control, each door should use different colors.