Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.thecherno.rain.entity;
- import java.util.Random;
- import com.thecherno.rain.graphics.Screen;
- import com.thecherno.rain.level.Level;
- public abstract class Entity {
- public int x, y;
- private boolean removed = false;
- protected Level level;
- protected final Random random = new Random();
- public void update() {
- }
- public void render(Screen screen) {
- }
- public void remove() {
- //Remove entity from level
- removed = true;
- }
- public boolean isRemoved() {
- return removed;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement