net.mostlyoriginal.api.component.graphics.Anim Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrib-jam Show documentation
Show all versions of contrib-jam Show documentation
Jam bundle of systems and components!
The newest version!
package net.mostlyoriginal.api.component.graphics;
import com.artemis.Component;
import com.artemis.annotations.Fluid;
/**
* Animations.
*
* @author Daan van Yperen
* @deprecated use Animation instead.
*/
@Fluid(swallowGettersWithParameters = true)
@Deprecated
public class Anim extends Component {
public boolean flippedX; // flip animation, should not affect rotation.
/** Playback speed factor. */
public float speed = 1;
/** Animation progression */
public float age = 0;
/** Loop animation when the end has been reached. */
public boolean loop = true;
/** Animation identifier. */
/** write asset resolver */
public String id;
// @todo please oh please clean this up!
public String id2;
public Anim(String id) {
this.id = id;
}
public Anim() {
}
public Anim set( String id)
{
this.id = id;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy