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