public class PongUI extends GameUI
GameUI.GameKeyListener, GameUI.MyJPanel| Constructor and Description |
|---|
PongUI(org.kie.api.runtime.KieSession ksession,
GameConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBall(Ball ball) |
void |
clearBat(Bat bat) |
void |
clearMovingBall(Ball ball) |
void |
drawBall(Ball ball) |
void |
drawBat(Bat bat) |
void |
drawGame(Ball ball,
Bat bat1,
Bat bat2,
Player p1,
Player p2) |
void |
drawScore(Player p,
int x) |
void |
drawTable() |
getCanvas, getGraphics, init, repaintpublic PongUI(org.kie.api.runtime.KieSession ksession,
GameConfiguration conf)
public void clearBall(Ball ball)
public void clearMovingBall(Ball ball)
public void clearBat(Bat bat)
public void drawTable()
public void drawBall(Ball ball)
public void drawBat(Bat bat)
public void drawScore(Player p, int x)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.