public class AssignableModel extends FeatureModel implements Assignable
Constructor and Description |
---|
AssignableModel(Services services)
Create an assignable model.
|
Modifier and Type | Method and Description |
---|---|
void |
prepare(FeatureProvider provider)
Prepare the feature.
|
void |
setAssign(Assign assign)
Set the executable assign.
|
void |
setClickAssign(int click)
Set the mouse click selection value to
Assign.assign() the assign. |
void |
update(double extrp) |
checkListener, getFeature, getFeatures, getFeaturesType, hasFeature
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkListener
getFeature, getFeatures, getFeaturesType, hasFeature
public AssignableModel(Services services)
The Services
must provide the following services:
If the Featurable
is an Assign
, it will automatically setAssign(Assign)
on it.
services
- The services reference.public void prepare(FeatureProvider provider)
Feature
Featurable.addFeature(Feature)
or
Featurable.addFeatureAndGet(Feature)
.prepare
in interface Feature
prepare
in class FeatureModel
provider
- The owner reference.public void setAssign(Assign assign)
Assignable
setAssign
in interface Assignable
assign
- The assign to execute.public void setClickAssign(int click)
Assignable
Assign.assign()
the assign.setClickAssign
in interface Assignable
click
- The click number.InputDevicePointer
Copyright © 2017 Byron 3D Games Studio. All rights reserved.