|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectctf.view.FieldViewTester
public class FieldViewTester
| 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 |
|---|
public static void main(java.lang.String[] args)
public java.awt.geom.RectangularShape fieldSize()
GameViewInterface
fieldSize in interface GameViewInterfacepublic java.awt.geom.RectangularShape jail(Side side)
GameViewInterface
jail in interface GameViewInterfacepublic double playerRadius()
GameViewInterface
playerRadius in interface GameViewInterfacepublic double treeRadius()
GameViewInterface
treeRadius in interface GameViewInterfacepublic java.lang.String statusMessage()
GameViewInterface
statusMessage in interface GameViewInterfacepublic boolean teamsConnected()
public TeamColor teamColor(Side side)
GameViewInterface
teamColor in interface GameViewInterfacepublic int clock()
GameViewInterface
clock in interface GameViewInterfacepublic int score(Side side)
GameViewInterface
score in interface GameViewInterfacepublic java.awt.geom.Point2D flagPosition(Side side)
GameViewInterface
flagPosition in interface GameViewInterfacepublic java.util.Collection<GameViewInterface.PlayerInfo> playerInfo(Side side)
GameViewInterface
playerInfo in interface GameViewInterfacepublic java.util.Collection<java.awt.geom.Point2D> trees()
GameViewInterface
trees in interface GameViewInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||