Beispiel #1
0
 public void update(Player p) {
   veloX = (int) p.getVelocity().x;
   veloY = (int) p.getVelocity().y;
 }
Beispiel #2
0
 public boolean equals(Player p) {
   return veloX == (int) p.getVelocity().x && veloY == (int) p.getVelocity().y;
 }
Beispiel #3
0
 public PositionState(Player p) {
   veloX = (int) p.getVelocity().x;
   veloY = (int) p.getVelocity().y;
 }