Controller.java 770 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package me.hammerle.supersnuvi.entity.components.ai;
  2. import me.hammerle.supersnuvi.entity.Entity;
  3. import me.hammerle.supersnuvi.gamelogic.Level;
  4. import me.hammerle.supersnuvi.tiles.Location;
  5. import me.hammerle.supersnuvi.util.Face;
  6. public class Controller
  7. {
  8. public final static Controller NULL = new Controller(null);
  9. protected final Entity ent;
  10. protected Controller(Entity ent)
  11. {
  12. this.ent = ent;
  13. }
  14. public void tick(Level level)
  15. {
  16. }
  17. public void renderTick(float lag)
  18. {
  19. }
  20. public boolean isAnimated()
  21. {
  22. return false;
  23. }
  24. public void onCollideWithTile(Location loc, Face face)
  25. {
  26. }
  27. public void onCollideWithEntity(Entity ent, Face face)
  28. {
  29. }
  30. }