-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameManager.ctxt
13 lines (13 loc) · 1.52 KB
/
GameManager.ctxt
1
2
3
4
5
6
7
8
9
10
11
12
13
#BlueJ class context
comment0.params=args
comment0.target=void\ main(java.lang.String[])
comment1.params=player\ colour
comment1.target=boolean\ specifyPlayer(PlayerInterface,\ Piece)
comment1.text=\r\n\ Define\ who\ will\ be\ playing\ each\ colour.\ This\ method\ will\ be\ called\ twice\ for\ each\ game\ once\ for\r\n\ RED\ and\ once\ for\ BLUE.\r\n\ \r\n\ @param\ \ player\ \ \ \ \ the\ player\ who\ will\ be\ playing\ red\r\n\ @param\ \ colour\ \ \ \ \ the\ enum\ for\ a\ Piece\ (RED\ or\ BLUE)\r\n\ @return\ boolean\ \ \ \ true\ if\ the\ player\ was\ successfully\ set\ to\ the\ specified\ colour\r\n\ \r\n\ @throws\ ColourAlreadySetException\ \ If\ the\ colour\ is\ alredy\ allocated\ to\ a\ player\r\n
comment2.params=sizeX\ sizeY
comment2.target=boolean\ boardSize(int,\ int)
comment2.text=\r\n\ Specifiy\ the\ size\ of\ the\ board\ that\ we\ are\ playing\ on.\ Both\ numbers\ must\ be\ greater\ than\ zero\r\n\ \r\n\ @param\ \ sizeX\ \ \ \ \ \ how\ wide\ the\ board\ will\ be\r\n\ @param\ \ sizeY\ \ \ \ \ \ how\ tall\ the\ board\ will\ be\r\n\ @returns\ boolean\ \ \ true\ if\ the\ board\ could\ be\ set\ successfully\r\n\ \r\n\ @throws\ InvalidBoardSizeException\ \ If\ either\ size\ value\ is\ less\ than\ one.\r\n\ @throws\ BoardAlreadySizedException\ If\ the\ board\ has\ already\ been\ created.\r\n
comment3.params=
comment3.target=boolean\ playGame()
comment3.text=\r\n\ The\ core\ of\ the\ game\ manager.\ This\ requests\ each\ player\ to\ make\ a\ move\ and\ plays\ these\ out\ on\ the\ \r\n\ game\ board.\r\n
numComments=4