home *** CD-ROM | disk | FTP | other *** search
- public class RotateAlways extends Codex {
- private CodexThing _mover;
- private int _frameNum = 1;
- private float _duration = 3.0F;
- private int _delay;
- public static String[] _params = new String[]{"Rotate around frame;1", "Duration;3.0", "Delay; 0"};
-
- public RotateAlways(int frameNum, float duration, int delay) {
- this._frameNum = frameNum;
- this._duration = duration;
- this._delay = delay;
- }
-
- public void beginscene(int clientGuid, int captureID) {
- this._mover = new CodexThing(((Codex)this).GetClassThing());
- this._mover.RotatePivot(this._frameNum, this._duration);
- }
-
- public void arrived(int thingGuid, int frameNum, int captureId) {
- ((Codex)this).SetTimer((float)this._delay);
- }
-
- public void timer(int timerID, float arg0, float arg1, float arg2, float arg3) {
- this._mover.RotatePivot(this._frameNum, this._duration);
- }
- }
-