|
||||||||||
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 GameViewInterface
public java.awt.geom.RectangularShape jail(Side side)
GameViewInterface
jail
in interface GameViewInterface
public double playerRadius()
GameViewInterface
playerRadius
in interface GameViewInterface
public double treeRadius()
GameViewInterface
treeRadius
in interface GameViewInterface
public java.lang.String statusMessage()
GameViewInterface
statusMessage
in interface GameViewInterface
public boolean teamsConnected()
public TeamColor teamColor(Side side)
GameViewInterface
teamColor
in interface GameViewInterface
public int clock()
GameViewInterface
clock
in interface GameViewInterface
public int score(Side side)
GameViewInterface
score
in interface GameViewInterface
public java.awt.geom.Point2D flagPosition(Side side)
GameViewInterface
flagPosition
in interface GameViewInterface
public java.util.Collection<GameViewInterface.PlayerInfo> playerInfo(Side side)
GameViewInterface
playerInfo
in interface GameViewInterface
public 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 |