public class AssignableModel extends TraitModel implements Assignable
The Services
must provide the following services:
If the ObjectGame
is an Assign
, it will automatically setAssign(Assign)
on it.
Constructor and Description |
---|
AssignableModel()
Create an assignable model.
|
Modifier and Type | Method and Description |
---|---|
void |
prepare(ObjectGame owner,
Services services)
Prepare the trait.
|
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) |
getOwner
public void prepare(ObjectGame owner, Services services)
Trait
prepare
in interface Trait
prepare
in class TraitModel
owner
- The owner reference.services
- The services 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 © 2016 Byron 3D Games Studio. All rights reserved.