📄 roadcourse.ctxt
字号:
#BlueJ class contextcomment0.target=class\ RoadCoursecomment1.params=robocomment1.target=void\ placeRobotOnRoad(Robot)comment1.text=pre\:\ \ \ \ isAvailable(0,\ 0)\ \ and\ \ robo.getParent()\=\=null\npost\:\ \ \ robo\ is\ placed\ on\ window\ and\ robo.getX()\=\=0\ and\ robo.getY()\=\=0\nand\ \ hasRobot[0][0]\ \ and\ \ hasRobot[0][1]\nand\ \ hasRobot[1][0]\ \ and\ \ hasRobot[1][1]\ \n\ncomment10.target=hasRobotcomment2.params=comment2.target=RoadCourse()comment3.params=oldR\ oldC\ r\ ccomment3.target=void\ moveRobotFromTo(int,int,int,int)comment3.text=pre\:\ \ \ \ isAvailable(r,\ c)\ \ and\ \ robo.getParent()\=\=null\npost\:\ \ \ not\ hasRobot[oldR][oldC]\ \ and\ \ not\ hasRobot[oldR][oldC+1]\nand\ \ not\ hasRobot[oldR+1][oldC]\ \ and\ \ not\ hasRobot[oldR+1][oldC+1]\nand\ hasRobot[r][c]\ \ and\ \ hasRobot[r][c+1]\nand\ hasRobot[r+1][c]\ \ and\ \ hasRobot[r+1][c+1]\ \n\ncomment4.params=r\ ccomment4.target=boolean\ canMoveDown(int,int)comment4.text=post\:\ \ \ result\ \=\=\ \ 0\ <\=\ r\ <\=\ 7\ \ and\ \ 0\ <\=\ c\ <\=\ 11\nand\ \ not\ hasRobot[r+2][c]\ \ \ and\ \ \ not\ hasRobot[r+2][c+1]\ \nand\ \ course[r+2][c]\=\='\ '\ \ and\ course[r+2][c+1]\=\='\ '\ \n\ncomment5.params=r\ ccomment5.target=boolean\ canMoveRight(int,int)comment5.text=post\:\ \ \ result\ \=\=\ \ 0\ <\=\ r\ <\=\ 8\ \ and\ \ 0\ <\=\ c\ <\=\ 10\nand\ \ not\ hasRobot[r][c+2]\ \ \ and\ \ \ not\ hasRobot[r+1][c+2]\ \nand\ \ course[r][c+2]\=\='\ '\ \ and\ course[r+1][c+2]\=\='\ '\ \n\ncomment6.target=windowcomment7.target=coursecomment8.params=r\ ccomment8.target=boolean\ canMoveUp(int,int)comment8.text=post\:\ \ \ result\ \=\=\ \ 1\ <\=\ r\ <\=\ 8\ \ and\ \ 0\ <\=\ c\ <\=\ 11\nand\ \ not\ hasRobot[r-1][c]\ \ \ and\ \ \ not\ hasRobot[r-1][c+1]\nand\ \ course[r-1][c]\=\='\ '\ \ and\ course[r-1][c+1]\=\='\ '\ \n\ncomment9.params=r\ ccomment9.target=boolean\ canMoveLeft(int,int)comment9.text=post\:\ \ \ result\ \=\=\ \ 0\ <\=\ r\ <\=\ 8\ \ and\ \ 1\ <\=\ c\ <\=\ 11\nand\ \ not\ hasRobot[r][c-1]\ \ \ and\ \ \ not\ hasRobot[r+1][c-1]\ \nand\ \ course[r][c-1]\=\='\ '\ \ and\ course[r+1][c-1]\=\='\ '\ \n\nnumComments=11
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -