-
Notifications
You must be signed in to change notification settings - Fork 0
/
Move.ctxt
17 lines (17 loc) · 1.28 KB
/
Move.ctxt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#BlueJ class context
comment0.params=x\ y
comment0.target=boolean\ setPosition(int,\ int)
comment0.text=\r\n\ Set\ the\ position\ that\ the\ Player\ wishes\ to\ use\ -\ both\ x\ and\ y\ coordinate.\r\n\ \r\n\ @param\ x\ \ \ the\ x\ coordinate\r\n\ @param\ y\ \ \ the\ y\ coordinate\r\n\ @return\ \ \ \ true\ indicating\ value\ set\ correctly\r\n\ \r\n\ @throws\ \ InvalidPositionException\ \ \ The\ position\ is\ invalid.\ E.g.\ both\ x\ and\ y\ are\ negative.\r\n
comment1.params=
comment1.target=boolean\ hasConceded()
comment1.text=\r\n\ Has\ the\ player\ conceded\ in\ this\ move?\r\n\ i.e.\ have\ they\ yielded\ to\ the\ fact\ that\ their\ opponent\ has\ won\ before\ all\ required\r\n\ moves\ are\ made.\r\n\r\n\ @return\ true\ if\ the\ player\ has\ conceded.\r\n
comment2.params=
comment2.target=int\ getXPosition()
comment2.text=\r\n\ Get\ the\ x\ coordinate\ of\ the\ move.\r\n\ \r\n\ @return\ the\ x\ coordinate.\r\n
comment3.params=
comment3.target=int\ getYPosition()
comment3.text=\r\n\ Get\ the\ y\ coordnate\ of\ the\ move.\r\n\ \r\n\ @return\ the\ y\ coordinate.\r\n
comment4.params=
comment4.target=boolean\ setConceded()
comment4.text=\r\n\ Indicate\ that\ the\ player\ has\ conceded\ in\ this\ move.\r\n\ \r\n\ @return\ true\ indicating\ conceded\ is\ set.\r\n
numComments=5