Movement.java 850 B

123456789101112131415161718192021222324252627282930313233343536
  1. package me.hammerle.supersnuvi.entity.components;
  2. import me.hammerle.supersnuvi.entity.Entity;
  3. public class Movement extends Component
  4. {
  5. public final static Movement NULL = new Movement(null);
  6. public Movement(Entity ent)
  7. {
  8. super(ent);
  9. }
  10. //--------------------------------------------------------------------------
  11. // jumping
  12. //--------------------------------------------------------------------------
  13. public boolean jump()
  14. {
  15. return false;
  16. }
  17. public double getJumpPower()
  18. {
  19. return 0.0;
  20. }
  21. //--------------------------------------------------------------------------
  22. // gravity
  23. //--------------------------------------------------------------------------
  24. public boolean isAffectedByGravity()
  25. {
  26. return false;
  27. }
  28. }