public interface Launchable extends Feature, Updatable
Launcher
Modifier and Type | Method and Description |
---|---|
void |
addListener(LaunchableListener listener)
Add a launchable listener.
|
void |
launch()
Initiate launch by using the defined vector with
setVector(Force) starting at the location defined by
setLocation(double, double) . |
void |
setLocation(double x,
double y)
Set the launch starting location.
|
void |
setVector(Force force)
Set the vector to use when launched.
|
checkListener, prepare
getFeature, getFeatures, getFeaturesType, hasFeature
void addListener(LaunchableListener listener)
listener
- The launchable listener to add.void launch()
setVector(Force)
starting at the location defined by
setLocation(double, double)
.void setLocation(double x, double y)
launch()
.x
- The starting horizontal location.y
- The starting vertical location.Copyright © 2017 Byron 3D Games Studio. All rights reserved.