|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bytefarmers.droids.games.football.DroidFootball
Football / Robocup Make a football simulation, start fairly simple and evovle to official Robocup and then FIFA rule set. :)
| Field Summary | |
FootballModel |
ball
The ball |
java.util.ArrayList |
teams
Contains our Team objects |
int[] |
teamScore
|
| Constructor Summary | |
DroidFootball()
Creates a new instance of DroidFootball |
|
| Method Summary | |
protected void |
clear(java.awt.Graphics2D g2d)
super.paintComponent clears offscreen pixmap, since we're using double buffering by default. |
void |
paintComponent(java.awt.Graphics g)
Paint components (swing) |
void |
startApp(java.awt.Graphics g,
java.awt.Image offScreenImage,
Droids simulation)
start application |
void |
stopApp()
stop application |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.util.ArrayList teams
public FootballModel ball
public int[] teamScore
| Constructor Detail |
public DroidFootball()
| Method Detail |
public void paintComponent(java.awt.Graphics g)
g - java.awt.Graphicsprotected void clear(java.awt.Graphics2D g2d)
g2d - java.awt.Graphics2D
public void startApp(java.awt.Graphics g,
java.awt.Image offScreenImage,
Droids simulation)
offScreenImage - BufferedImagesimulation - the main classg - java.awt.Graphicspublic void stopApp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||