ctf.view
Class FieldViewTester

java.lang.Object
  extended by ctf.view.FieldViewTester
All Implemented Interfaces:
GameViewInterface

public class FieldViewTester
extends java.lang.Object
implements GameViewInterface


Nested Class Summary
 
Nested classes/interfaces inherited from interface ctf.view.GameViewInterface
GameViewInterface.PlayerInfo
 
Method Summary
 int clock()
          How long the game has been going on (in seconds)
 java.awt.geom.RectangularShape fieldSize()
          The size of the field (in metres)
 java.awt.geom.Point2D flagPosition(Side side)
          Position of a team's flag
 java.awt.geom.RectangularShape jail(Side side)
          The size of each jail (in metres)
static void main(java.lang.String[] args)
           
 java.util.Collection<GameViewInterface.PlayerInfo> playerInfo(Side side)
          Position, orientation for all players on a team
 double playerRadius()
          The radius of each player (in metres)
 int score(Side side)
          What's the given team's score?
 java.lang.String statusMessage()
          A status message: any information the Model would like to convey
 TeamColor teamColor(Side side)
          What is the given team's colour?
 boolean teamsConnected()
           
 double treeRadius()
          The radius of each tree (in metres)
 java.util.Collection<java.awt.geom.Point2D> trees()
          Positions of all trees
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)

fieldSize

public java.awt.geom.RectangularShape fieldSize()
Description copied from interface: GameViewInterface
The size of the field (in metres)

Specified by:
fieldSize in interface GameViewInterface

jail

public java.awt.geom.RectangularShape jail(Side side)
Description copied from interface: GameViewInterface
The size of each jail (in metres)

Specified by:
jail in interface GameViewInterface

playerRadius

public double playerRadius()
Description copied from interface: GameViewInterface
The radius of each player (in metres)

Specified by:
playerRadius in interface GameViewInterface

treeRadius

public double treeRadius()
Description copied from interface: GameViewInterface
The radius of each tree (in metres)

Specified by:
treeRadius in interface GameViewInterface

statusMessage

public java.lang.String statusMessage()
Description copied from interface: GameViewInterface
A status message: any information the Model would like to convey

Specified by:
statusMessage in interface GameViewInterface

teamsConnected

public boolean teamsConnected()

teamColor

public TeamColor teamColor(Side side)
Description copied from interface: GameViewInterface
What is the given team's colour?

Specified by:
teamColor in interface GameViewInterface

clock

public int clock()
Description copied from interface: GameViewInterface
How long the game has been going on (in seconds)

Specified by:
clock in interface GameViewInterface

score

public int score(Side side)
Description copied from interface: GameViewInterface
What's the given team's score?

Specified by:
score in interface GameViewInterface

flagPosition

public java.awt.geom.Point2D flagPosition(Side side)
Description copied from interface: GameViewInterface
Position of a team's flag

Specified by:
flagPosition in interface GameViewInterface

playerInfo

public java.util.Collection<GameViewInterface.PlayerInfo> playerInfo(Side side)
Description copied from interface: GameViewInterface
Position, orientation for all players on a team

Specified by:
playerInfo in interface GameViewInterface

trees

public java.util.Collection<java.awt.geom.Point2D> trees()
Description copied from interface: GameViewInterface
Positions of all trees

Specified by:
trees in interface GameViewInterface