com.bytefarmers.droids.games.football
Class DroidFootball

java.lang.Object
  extended bycom.bytefarmers.droids.games.football.DroidFootball

public class DroidFootball
extends java.lang.Object

Football / Robocup Make a football simulation, start fairly simple and evovle to official Robocup and then FIFA rule set. :)

Author:
Fini A. Alring

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

teams

public java.util.ArrayList teams
Contains our Team objects


ball

public FootballModel ball
The ball


teamScore

public int[] teamScore
Constructor Detail

DroidFootball

public DroidFootball()
Creates a new instance of DroidFootball

Method Detail

paintComponent

public void paintComponent(java.awt.Graphics g)
Paint components (swing)

Parameters:
g - java.awt.Graphics

clear

protected void clear(java.awt.Graphics2D g2d)
super.paintComponent clears offscreen pixmap, since we're using double buffering by default.

Parameters:
g2d - java.awt.Graphics2D

startApp

public void startApp(java.awt.Graphics g,
                     java.awt.Image offScreenImage,
                     Droids simulation)
start application

Parameters:
offScreenImage - BufferedImage
simulation - the main class
g - java.awt.Graphics

stopApp

public void stopApp()
stop application