All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blastedstudios.gdxworld.world.animation.AnimationStruct Maven / Gradle / Ivy

The newest version!
package com.blastedstudios.gdxworld.world.animation;

import java.io.Serializable;

import com.blastedstudios.gdxworld.plugin.quest.manifestation.physics.PhysicsManifestation;
import com.blastedstudios.gdxworld.world.quest.manifestation.AbstractQuestManifestation;

public class AnimationStruct implements Cloneable,Serializable{
	private static final long serialVersionUID = 1L;
	public AbstractQuestManifestation manifestation = new PhysicsManifestation();
	public float time;
	
	public AnimationStruct(){}
	public AnimationStruct(AbstractQuestManifestation manifestation, float time){
		this.manifestation = manifestation;
		this.time = time;
	}
	
	@Override public Object clone(){
		AnimationStruct clone = new AnimationStruct();
		clone.manifestation = manifestation.clone();
		clone.time = time;
		return clone;
	}
	
	@Override public String toString(){
		return "[AnimationStruct time: " + time + " manifestation: " + manifestation.toString() + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy