示例#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;
 }