📄 aircraft.ctxt
字号:
#BlueJ class context
comment0.params=tr\ tq
comment0.target=Aircraft(Runway,\ Queue)
comment0.text=\nConstructor\ for\ Aircraft\ objects\n@param\ \ tr\ the\ runway\ the\ aircraft\ should\ land\ at\ if\ trying\ to\ land\n@param\ \ tq\ the\ queue\ the\ queue\ the\ aircraft\ should\ join\ if\ trying\ to\ queue\n\n
comment1.target=boolean\ hasLanded()
comment10.target=void\ goToQueue()
comment10.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ is\ attempting\ to\ join\ a\ queue\n\n
comment11.target=void\ queue()
comment11.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ is\ queueing\n\n
comment12.target=void\ touchDown()
comment12.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ is\ on\ the\ ground\n\n
comment13.target=void\ leave()
comment13.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ is\ leaving\ the\ simulation\n\n
comment14.target=void\ destroy()
comment15.target=int\ getState()
comment15.text=\nAccessor\ method\ for\ the\ current\ state\ of\ this\ Aircraft\n\n@return\ \ \ \ \ the\ state\ of\ the\ Aircraft\n\n
comment16.params=graphic
comment16.target=void\ draw(Graphics2D)
comment16.text=\nDraws\ the\ aircraft\ so\ it\ can\ be\ displayed\n\n@param\ \ graphic\ a\ Graphics2D\ to\ draw\ the\ runway\ onto\n\n
comment17.target=boolean\ isLanded()
comment17.text=\nChecks\ if\ this\ plane\ has\ reached\ its\ target\ runway.\ \nAircraft\ are\ considered\ to\ have\ reached\ it\ if\ they\ are\ within\ 1px\ of\ the\ start\ of\ the\ runway,\ and\ are\ within\ 0.1\ radians\ of\ the\ correct\ angle\ to\ land.\n\n@return\ \ \ \ \ whether\ the\ plane\ has\ reach\ the\ start\ of\ the\ target\ runway\ at\ the\ correct\ angle\n\n
comment18.target=boolean\ isAtQueue()
comment18.text=\nChecks\ if\ this\ plane\ has\ reached\ its\ target\ queue.\nAircraft\ are\ considered\ to\ have\ reached\ it\ if\ they\ are\ within\ 1px\ of\ point\ where\ they\ should\ join\ the\ queue,\ and\ are\ within\ 0.1\ radians\ of\ the\ correct\ angle\ to\ join.\n\n@return\ \ \ \ \ whether\ the\ plane\ is\ able\ to\ join\ the\ queue\n\n
comment19.target=void\ move()
comment19.text=\nMoves\ the\ position\ of\ the\ plane\ in\ the\ current\ angle\ at\ the\ current\ velocity\ the\ distance\ it\ would\ move\ in\ one\ time\ unit\n\n
comment2.target=String\ randomLetter()
comment2.text=\nReturn\ a\ random\ alphabetic\ character\n\n@return\ \ \ \ \ a\ randomly\ chosen\ letter\n\n
comment20.params=target
comment20.target=void\ home(Position)
comment20.text=\nChange\ the\ angle\ of\ the\ plane\ the\ maximum\ angle\ possible\ in\ one\ time\ unit\ in\ order\ to\ point\ the\ plane\ towards\ a\ target\n\n@param\ \ \ target\ \ \ \ \ the\ position\ to\ home\ towards\n\n
comment21.params=target\ targetAngle
comment21.target=void\ homeAngleAndPosition(Position,\ float)
comment21.text=\nChange\ the\ angle\ of\ the\ plane\ the\ maximum\ angle\ possible\ in\ one\ time\ unit\ in\ order\ to\ point\ the\ plane\ towards\ a\ target,\ and\ so\ that\ it\ reaches\ the\ target\ pointing\ in\ a\ specific\ direction.\nThis\ method\ takes\ into\ account\ the\ turning\ circle\ of\ the\ plane.\n\n@param\ \ \ target\ \ \ \ \ the\ position\ to\ home\ towards\n@param\ \ \ targetAngle\ \ \ \ \ the\ angle\ the\ aircraft\ should\ point\ in\ when\ it\ reaches\ the\ destination\n\n
comment22.target=void\ findAngle()
comment22.text=\nChanges\ the\ angle\ of\ the\ plane\ the\ maximum\ amount\ possible\ in\ one\ unit\ of\ time.\ The\ direction\ of\ the\ change\ in\ angle\ depends\ on\ the\ state\ of\ the\ plane.\n\n
comment3.target=String\ getID()
comment3.text=\nAccessor\ method\ for\ the\ id\ number\ of\ this\ Aircraft\n\n@return\ \ \ \ \ the\ id\ number\ of\ this\ Aircraft\n\n
comment4.target=String\ toString()
comment4.text=\nReturn\ the\ id\ number\ of\ this\ aircraft\ when\ toString()\ is\ called\n@see\ \ \ \ \ \ \ \ \ java.lang.Object\#toString\n@return\ \ \ \ \ the\ id\ number\ of\ this\ Aircraft,\ plus\ "(Landed)"\ if\ it\ is\ on\ the\ ground\n\n
comment5.target=Position\ where()
comment5.text=\nAccessor\ method\ for\ the\ position\ of\ this\ Aircraft\n\n@return\ \ \ \ \ where\ this\ Aircraft\ currently\ is\n\n
comment6.target=void\ land()
comment6.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ begins\ to\ attempt\ a\ landing\ \n\n
comment7.params=aRunway
comment7.target=void\ land(Runway)
comment7.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ begins\ to\ attempt\ a\ landing\ at\ the\ specified\ runway\n@param\ aRunway\ the\ runway\ to\ land\ on\n\n
comment8.target=void\ turnLeft()
comment8.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ is\ turning\ to\ the\ left\n\n
comment9.target=void\ turnRight()
comment9.text=\nChanges\ state\ of\ the\ aircraft\ so\ that\ it\ is\ turning\ to\ the\ right\n\n
numComments=23
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -