package com.drawbridge.dm.animation;
import com.drawbridge.dm.DMObject;
/**
* A class that describes the updated state of the animation objects
* and the time that state was captured
* @author Alistair Stead
*
*/
public class NativeAnimationItem{
public final Integer x;
public final Integer y;
public final Integer w;
public final Integer h;
public final DMObject mObject;
public final Double timeDelay;
//Any of the args can be null
public NativeAnimationItem(DMObject object, Integer x, Integer y, Integer w, Integer h, Double timeDelay){
mObject = object;
this.x = x;
this.y = y;
this.w = w;
this.h = h;
this.timeDelay = timeDelay;
}
@Override
public String toString(){
return "AnimationAction: (" + x + ", " + y + "), (" + w + ", " + h + ")";
}
}