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

mmb.content.aim.Aimable Maven / Gradle / Ivy

Go to download

Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world. THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<

There is a newer version: 0.6
Show newest version
/**
 * 
 */
package mmb.content.aim;

import java.awt.Point;

/**
 * A block, whose target can be set
 * @author oskar
 */
public interface Aimable {
	/** @return target X coordinate */
	public int aimX();
	/** @return target Y coordinate */
	public int aimY();
	/** @return target position */
	public default Point aim() {
		return new Point(aimX(), aimY());
	}
	/** Set the X target coordinate
	 * @param x X target coordinate
	 */
	public void aimX(int x);
	/** Set the Y target coordinate
	 * @param y Y target coordinate
	 */
	public void aimY(int y);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy