Advertisement
Guest User

Untitled

a guest
May 24th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package pw.ske.grapply;
  2.  
  3. import com.badlogic.ashley.core.Entity;
  4. import com.badlogic.gdx.math.Vector2;
  5. import com.badlogic.gdx.physics.box2d.Body;
  6.  
  7. public abstract class Behavior {
  8. protected Entity entity;
  9.  
  10. public abstract void execute(float delta);
  11.  
  12. public Entity getEntity() {
  13. return entity;
  14. }
  15.  
  16. public void setEntity(Entity entity) {
  17. this.entity = entity;
  18. }
  19.  
  20. public Body body() {
  21. return Entities.body(entity);
  22. }
  23.  
  24. public Vector2 position() {
  25. return Entities.position(entity);
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement