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