public void update(Player p) { veloX = (int) p.getVelocity().x; veloY = (int) p.getVelocity().y; }
public boolean equals(Player p) { return veloX == (int) p.getVelocity().x && veloY == (int) p.getVelocity().y; }
public PositionState(Player p) { veloX = (int) p.getVelocity().x; veloY = (int) p.getVelocity().y; }