client
Class Ball

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

public class Ball
extends Shape

Trida reprezentujici micek ve hre Ping-pong.

Author:
Jan Moulis

Field Summary
 
Fields inherited from class client.Shape
position, shape, size
 
Constructor Summary
Ball(java.awt.Dimension gamePanelSize)
          Konstruktor tridy Ball.
 
Method Summary
 void setPosition(java.awt.Point point)
          Nastaveni pozice micku.
 
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

Ball

public Ball(java.awt.Dimension gamePanelSize)
Konstruktor tridy Ball. Nastavuje velikost micku a jeho pocatecni pozici

Parameters:
gamePanelSize - - rozmery hraciho plochy
Method Detail

setPosition

public void setPosition(java.awt.Point point)
Nastaveni pozice micku.

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