ColorRunner/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/AbstractPlayerController.java

25 lines
790 B
Java
Raw Normal View History

2017-04-30 19:53:36 +02:00
package de.samdev.colorrunner.game.world.entities.gameentities.controller;
import de.samdev.colorrunner.game.world.entities.gameentities.ControllingType;
import de.samdev.colorrunner.game.world.entities.gameentities.PlayerEntity;
public abstract class AbstractPlayerController {
public float GRAVITY_FORCE = 700f;
public final static float TERMINAL_VELOCITY = 900f;
2017-05-17 20:43:08 +02:00
public final static float PLAYER_JUMP_FORCE_INITIAL = 200f;
public final static float PLAYER_JUMP_FORCE_AIR = 500f;
2017-04-30 21:21:53 +02:00
public final static float PLAYER_FLY_UP_FORCE = 350f;
2017-04-30 19:53:36 +02:00
protected final PlayerEntity Player;
public AbstractPlayerController(PlayerEntity e) {
Player = e;
}
public abstract void update(float delta);
public abstract ControllingType getControllerType();
public abstract void jumpPressed();
}