|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.schedops.properties.ScheduledTextureChanger
public class ScheduledTextureChanger
Schedules a Texture change (thread safely).
| Constructor Summary | |
|---|---|
ScheduledTextureChanger(OperationScheduler opScheder,
Appearance app)
Creates a new TextureChanger. |
|
| Method Summary | |
|---|---|
boolean |
isAlive()
if false, the object will be removed from the scheduler next loop iteration |
boolean |
isPersistent()
If this operation is persistent, it remains scheduled after beeing executed once. |
void |
setAlive(boolean alive)
Sets this Object alive or dead. |
void |
setTexture(Texture texture)
Creates a new TextureChanger. |
void |
update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
Updates this Updatable object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScheduledTextureChanger(OperationScheduler opScheder,
Appearance app)
opScheder - the OperationScheduler to handle this operationapp - the Appearance that holds the Texture| Method Detail |
|---|
public boolean isPersistent()
isPersistent in interface ScheduledOperationpublic void setAlive(boolean alive)
setAlive in interface ScheduledOperationalive - if false, the object will be removed from the scheduler
next loop iterationpublic boolean isAlive()
ScheduledOperation
isAlive in interface ScheduledOperation
public void update(long gameTime,
long frameTime,
UpdatingThread.TimingMode timingMode)
update in interface UpdatablegameTime - the gameTime in MillisecondsframeTime - the frameTime in Milliseconds (needed time for the last frame)timingMode - the TimingMode to use for frameTime.public void setTexture(Texture texture)
texture - the new Texture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||