Object <- Viewable <- Building |
|
|
CalcInsidePart CanAcceptCoupon DefaultReceiverForSelf Draw FallbackImage |
|
Image |
| Field | Type | |
|---|---|---|
| Viewable: | superview: | Viewable |
| relativeOrigin: | Dot | |
| contentSize: | Dot | |
| viewFlags: | Flags | |
| labelStyle: | TextStyle | |
| color: | Unsigned | |
| altColor: | Unsigned | |
| shadow: | Shadow | |
| sound: | Playable | |
| HasDestination: | destination: | Viewable |
| HasLock: | lock: | Lock |
| HasDoorway: | image: | Image |
| authoringModeOnly: | Boolean | |
| Building: | logoCenter: | Dot |
| logoImage: | Image |
instance Building tag; relativeOrigin: <0.0,0.0>; contentSize: <0.0,0.0>; viewFlags: 0x00000000; labelStyle: nilObject; color: 0; altColor: 0; shadow: nilObject; sound: nilObject; destination: nilObject; lock: nilObject; image: nilObject; authoringModeOnly: false; logoCenter: <0.0,0.0>; logoImage: nilObject; end instance;
Define Class Building; inherits from Viewable, HasDoorway; field logoCenter: Dot; field logoImage: Image; overrides CanAcceptCoupon; // returns false for shadows and borders, otherwise returns inherited. overrides CalcInsidePart; // does extra checks to see if probe is inside the building image. overrides Draw; // draws the building. overrides SetImage; // sets the contentBox of self based on the contentBox of the image. overrides DefaultReceiverForSelf; // returns iDowntown. overrides FallbackImage; // returns logoImage if non-nil, otherwise returns Image(self). end class;