Movement.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. package me.hammerle.supersnuvi.entity.components;
  2. import me.hammerle.supersnuvi.entity.Entity;
  3. public class Movement
  4. {
  5. public final static Movement NULL = new Movement(null);
  6. protected final Entity ent;
  7. public Movement(Entity ent)
  8. {
  9. this.ent = ent;
  10. }
  11. public float getVelocityX()
  12. {
  13. return 0.0f;
  14. }
  15. public float getVelocityY()
  16. {
  17. return 0.0f;
  18. }
  19. public boolean canMoveEverywhere()
  20. {
  21. return false;
  22. }
  23. //--------------------------------------------------------------------------
  24. // jumping
  25. //--------------------------------------------------------------------------
  26. public boolean jump()
  27. {
  28. return false;
  29. }
  30. public float getJumpPower()
  31. {
  32. return 0.0f;
  33. }
  34. //--------------------------------------------------------------------------
  35. // gravity
  36. //--------------------------------------------------------------------------
  37. public boolean hasGravity()
  38. {
  39. return false;
  40. }
  41. public float getGravityFactor()
  42. {
  43. return 1.0f;
  44. }
  45. //--------------------------------------------------------------------------
  46. // friction
  47. //--------------------------------------------------------------------------
  48. public void setInWater(boolean b)
  49. {
  50. }
  51. public void setFrictionFactor(float f)
  52. {
  53. }
  54. }