Swallower <- HasDoorway |
|
|
ApplyText MakeActive MakeValid Tap Touch |
|
Label UseScaledText |
| Field | Type | |
|---|---|---|
| HasDestination: | destination: | Viewable |
| HasLock: | lock: | Lock |
| HasDoorway: | image: | Image |
| authoringModeOnly: | Boolean |
Define Class HasDoorway; // mixin for common methods of Building and Door mixes in with Viewable; inherits from Swallower; inherits from Entrance; inherits from HasLock; field image: Image, getter, sharedSetter; field authoringModeOnly: Boolean, getter; overrides Label; // returns the name of the destination. overrides MakeActive; // if the destination does not exist, Destroy(self). overrides MakeValid; // adds self to make active list so that we can do the above. overrides ApplyText; // changes the name of the door and the destination. overrides Tap, Touch; // opens the door and zooms to the destination. #ifdef SCALED_SCREEN overrides UseScaledText; // returns true. #endif end class;