SHARE
TWEET

Untitled

a guest Sep 4th, 2014 220 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.intelligentprocedure.TexasTreadmill.entity;
  2.  
  3. import com.badlogic.gdx.graphics.g2d.SpriteBatch;
  4. import com.intelligentprocedure.TexasTreadmill.TTMain;
  5.  
  6. import java.util.ArrayList;
  7.  
  8. /**
  9.  * Created by Justin on 8/27/2014.
  10.  */
  11. public class Entity {
  12.     int layer;
  13.     static {
  14.         for(int i = 0; i < 10; i++){
  15.             TTMain.entities.add(new ArrayList<Entity>());
  16.         }
  17.     }
  18.     public Entity(int layer){
  19.         TTMain.entities.get(layer).add(this);
  20.         this.layer = layer;
  21.     }
  22.  
  23.     public void render(SpriteBatch sb){}
  24.     public void update(){}
  25.  
  26.     public void end(){
  27.         TTMain.entities.get(layer).remove(this);
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top