コード例 #1
0
 public Point positionRelativeTo(EntityStatic entity)
 {
     return(new Point(
                this.getX() - entity.getX(),
                this.getY() - entity.getY()
                ));
 }
コード例 #2
0
 public int yRelativeTo(EntityStatic entity)
 {
     return(this.getY() - entity.getY());
 }