client
Class Bat

java.lang.Object
  extended by client.Shape
      extended by client.Bat

public class Bat
extends Shape

Trida reprezentujici palky ve hre Ping-pong.

Author:
Jan Moulis

Field Summary
 
Fields inherited from class client.Shape
position, shape, size
 
Constructor Summary
Bat(java.awt.Dimension gamePanelSize, boolean left)
          Konstruktor tridy Bat.
 
Method Summary
 void setPosition(java.awt.Point point)
          Nastaveni pozice palky.
 
Methods inherited from class client.Shape
fill, getInfo, getPosition, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bat

public Bat(java.awt.Dimension gamePanelSize,
           boolean left)
Konstruktor tridy Bat. Nastavuje velikost palky a jeji pocatecni umisteni.

Parameters:
gamePanelSize - - velikost hraci plochy
left - - leva/prava strana (leva strana true, prava false)
Method Detail

setPosition

public void setPosition(java.awt.Point point)
Nastaveni pozice palky. Meni se pouze y-ova souradnice.

Specified by:
setPosition in class Shape
Parameters:
point - - nova pozice palky