1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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 boolean isInWater()
- {
- return false;
- }
-
- public void setFrictionFactor(float f)
- {
- }
-
- public float getFrictionFactor()
- {
- return 1.0f;
- }
- }
|