package sk.neuromancer.sphaera.rewrite; import com.badlogic.gdx.graphics.g3d.Material; import com.badlogic.gdx.math.Vector3; import sk.neuromancer.sphaera.interf.Tickable; public class LiveSphere extends DirectedSphere implements Tickable{ private SphereType type; public LiveSphere() { super(); } public LiveSphere(float radius) { super(radius); } public LiveSphere(float radius, SphereType type) { super(radius, type.equals(SphereType.BIGGER) ? Sphere.BIGGER_MAT : Sphere.SMALLER_MAT); this.type = type; } public LiveSphere(float radius, Material... mat) { super(radius, mat); } public LiveSphere(float x, float y, float z, float radius, SphereType type) { super(x, y, z, radius, type.equals(SphereType.BIGGER) ? Sphere.BIGGER_MAT : Sphere.SMALLER_MAT); this.type = type; } public LiveSphere(float x, float y, float z, float radius, Material... mat) { super(x, y, z, radius, mat); } public LiveSphere(Sphere parent, float a, float b, float radius, Vector3 direction, Material... mat) { super(parent, a, b, radius, direction, mat); } public LiveSphere(Sphere parent, float a, float b, float radius, Material... mat) { super(parent, a, b, radius, mat); } @Override public void tick(long tickCount) { this.forward(0.5f); } public SphereType getType(){ return this.type; } public void setType(SphereType type){ this.type = type; } public enum SphereType{ SMALLER, BIGGER; } }