[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

Building

inherits from Viewable
inherits from HasDoorway

Object <- Viewable <- Building



Operations

Get list of all operations

CalcInsidePart
CanAcceptCoupon
DefaultReceiverForSelf
Draw
FallbackImage


Attributes

Get list of all attributes

Image


Fields

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 template

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;

Class definition

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;