-
Notifications
You must be signed in to change notification settings - Fork 0
/
FruitTile.ctxt
23 lines (23 loc) · 1.37 KB
/
FruitTile.ctxt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#BlueJ class context
comment0.params=grid\ location
comment0.target=FruitTile(Grid,\ Location)
comment0.text=\r\n\ Creates\ a\ FruitTile\ object\ in\ the\ given\ location\ in\ the\ grid.\r\n\ @param\ grid\ The\ grid\ to\ assign\ the\ tile\ to.\r\n\ @param\ location\ The\ location\ of\ the\ tile\ on\ the\ grid.\r\n
comment1.params=grid\ row\ col
comment1.target=FruitTile(Grid,\ int,\ int)
comment1.text=\r\n\ Creates\ a\ FruitTile\ object\ in\ the\ given\ coordinates\ in\ the\ grid\r\n\ @param\ grid\ The\ grid\ to\ assign\ the\ tile\ to.\r\n\ @param\ row\ The\ row\ the\ tile\ belongs\ to.\r\n\ @param\ col\ The\ col\ the\ tile\ belongs\ to.\r\n
comment2.params=
comment2.target=void\ sane()
comment2.text=\r\n\ Ensures\ the\ FruitTile\ object\ exists\ on\ the\ grid\r\n
comment3.params=location
comment3.target=void\ setLocation(Location)
comment3.text=\r\n\ Places\ the\ tile\ at\ a\ location\ in\ the\ grid\r\n\ @param\ location\ The\ location\ to\ set\ the\ tile\ in\r\n
comment4.params=
comment4.target=boolean\ isEdible()
comment4.text=\r\n\ Returns\ whether\ or\ not\ this\ fruit\ can\ be\ passed\ through\ by\ the\ snake\r\n
comment5.params=
comment5.target=Grid\ getGrid()
comment5.text=\r\n\ Returns\ the\ grid\ the\ fruit\ is\ in\r\n
comment6.params=
comment6.target=Location\ getLocation()
comment6.text=\r\n\ Returns\ the\ location\ of\ the\ grid\ the\ fruit\ is\ in\r\n
numComments=7