Advertisement
Guest User

Entity

a guest
Jun 13th, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. package com.thecherno.rain.entity;
  2.  
  3. import java.util.Random;
  4.  
  5. import com.thecherno.rain.graphics.Screen;
  6. import com.thecherno.rain.level.Level;
  7.  
  8. public abstract class Entity {
  9.    
  10.     public int x, y;
  11.     private boolean removed = false;
  12.     protected Level level;
  13.     protected final Random random  = new Random();
  14.    
  15.     public void update() {
  16.        
  17.     }
  18.    
  19.     public void render(Screen screen) {
  20.        
  21.     }
  22.    
  23.     public void remove() {
  24.         //Remove entity from level
  25.         removed = true;
  26.     }
  27.    
  28.     public boolean isRemoved() {
  29.         return removed;
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement