public Racket(Pongpector pongpector, bool isTop) { this.pongpector = pongpector; this.texture = pongpector.texture; this.isTop = isTop; y = (isTop ? pongpector.height * 0.05f : pongpector.height * 0.95f); }