package dev.lh; import java.awt.Graphics; /** * This interface contains everything that needs to updated regularly.
*
* Project: Snake
* File: Updateable.java
* Created: 11 Mar 2020
* * @author Leon Hofmeister * @since Snake 1.0 */ public interface Updateable { /** * Here should the actions be implemented that are supposed to happen when a new * frame gets created. * * @since Snake 1.0 */ void nextFrame(); /** * Renders the object. * * @param g the {@link Graphics} object that is used to render this object * @since Snake 1.0 */ void render(Graphics g); }