[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]

CanContainEntrances

mixes in with Viewable

CanContainEntrances



Operations

Get list of all operations

CreateEntrance
FindEntranceFromDestination
InstallEntrance
InstallInto


Attributes

Get list of all attributes

Class CanContainEntrances defines no new attributes.


Fields

No fields are defined by CanContainEntrances or any of its superclasses.


Instance template

Class CanContainEntrances cannot be instantiated.


Class definition

Define Class CanContainEntrances;
    mixes in with Viewable;

    operation InstallEntrance(newEntrance: Entrance);
        // Installs an entrance.  The default method just places
        // the new entrance in the view heirarchy.
        // Sometimes override to do something special when an entrance has 
        // been installed into self.
    operation CreateEntrance(destination: Viewable; image: Image) : Entrance;
        // Make an entrance that knows how to install itself into
        // this place.  Call InstallSelf on the object returned in
        // order to install it.  The default method returns an icon
        // with nativeContainer set to self.
        // Override if it makes sense to provide a different kind of 
        // entrance to self.  (e.g., hallways make doors instead of icons)
    operation FindEntranceFromDestination(destination: Viewable) : Viewable;
        // Tries to find an entrance which leads to a particular destination.
        // Returns nilObject on failure.
        // Rarely override. 

    overrides InstallInto;
        // InstallInto is here temporarily until we wean ourselves away
        // from using InstallInto for entrances.  This method just calls
        // InstallEntrance and ignores the flags and parameters which
        // are passed to it (except in the case of scenes, which use
        // InstallInto for scene additions).
        // Rarely override.
end class;