12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- package me.hammerle.supersnuvi.entity.components;
- import me.hammerle.supersnuvi.entity.Entity;
- public class Movement
- {
- public final static Movement NULL = new Movement(null);
-
- protected final Entity ent;
-
- public Movement(Entity ent)
- {
- this.ent = ent;
- }
-
- public float getVelocityX()
- {
- return 0.0f;
- }
-
- public float getVelocityY()
- {
- return 0.0f;
- }
-
- public boolean canMoveEverywhere()
- {
- return false;
- }
-
- //--------------------------------------------------------------------------
- // jumping
- //--------------------------------------------------------------------------
-
- public boolean jump()
- {
- return false;
- }
-
- public float getJumpPower()
- {
- return 0.0f;
- }
-
- //--------------------------------------------------------------------------
- // gravity
- //--------------------------------------------------------------------------
-
- public boolean hasGravity()
- {
- return false;
- }
-
- public float getGravityFactor()
- {
- return 1.0f;
- }
-
- //--------------------------------------------------------------------------
- // friction
- //--------------------------------------------------------------------------
-
- public void setInWater(boolean b)
- {
- }
-
- public void setFrictionFactor(float f)
- {
- }
- }
|