123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- 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)
- {
- }
-
- public float getFrictionFactor()
- {
- return 1.0f;
- }
- }
|