com.threerings.tudey.client.sprite
Class PlaceableSprite.ClickableProp
java.lang.Object
com.threerings.expr.SimpleScope
com.threerings.tudey.client.sprite.PlaceableSprite.Implementation
com.threerings.tudey.client.sprite.PlaceableSprite.Original
com.threerings.tudey.client.sprite.PlaceableSprite.Prop
com.threerings.tudey.client.sprite.PlaceableSprite.ClickableProp
- All Implemented Interfaces:
- Scope, ScopeUpdateListener
- Enclosing class:
- PlaceableSprite
public static class PlaceableSprite.ClickableProp
- extends PlaceableSprite.Prop
A prop that may be clicked to perform some action.
| Fields inherited from interface com.threerings.expr.Scope |
EPOCH, NOW |
PlaceableSprite.ClickableProp
public PlaceableSprite.ClickableProp(TudeyContext ctx,
Scope parentScope,
PlaceableConfig.ClickableProp config)
- Creates a new clickable prop implementation.
setConfig
public void setConfig(PlaceableConfig.Original config)
- Description copied from class:
PlaceableSprite.Original
- (Re)configures the implementation.
- Overrides:
setConfig in class PlaceableSprite.Prop
isHoverable
public boolean isHoverable()
- Description copied from class:
PlaceableSprite.Implementation
- Determines whether the implementation is hoverable.
- Overrides:
isHoverable in class PlaceableSprite.Implementation
isClickable
public boolean isClickable()
- Description copied from class:
PlaceableSprite.Implementation
- Determines whether the implementation is clickable.
- Overrides:
isClickable in class PlaceableSprite.Implementation
dispatchEvent
public boolean dispatchEvent(Event event)
- Description copied from class:
PlaceableSprite.Implementation
- Dispatches an event on the implementation.
- Overrides:
dispatchEvent in class PlaceableSprite.Implementation
- Returns:
- true if the implementation handled the event, false if it should be handled
elsewhere.
Copyright © 2011. All Rights Reserved.