mmb.engine.visuals.Visual Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
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<
/**
*
*/
package mmb.engine.visuals;
import java.awt.Graphics;
import com.github.davidmoten.rtree2.geometry.Geometry;
import mmb.menu.world.window.WorldFrame;
/**
* @author oskar
*
*/
public interface Visual {
/**
* @return the geometry, in which the visual object fits
*/
public Geometry border();
/**
* Renders the visual object in the window
* @param g
* @param frame
*/
public void render(Graphics g, WorldFrame frame);
}