📄 animal.ctxt
字号:
#BlueJ class context
comment0.target=class\ Animal
comment0.text=Class\ for\ defining\ an\ animal.\ All\ animals\ are\ spatial\ \nobjects\ and\ can\ live,\ die\ and\ feed\ in\ some\ way.\n@author\ Jo\ Wood\n@version\ 1.3,\ 18th\ September,\ 2001.\n\n
comment1.params=foodLevel\ footprint
comment1.target=Animal(int,Footprint)
comment1.text=Creates\ an\ animal\ with\ a\ given\ initial\ food\ level\ and\ footprint.\n@param\ foodLevel\ Initial\ food\ level\ of\ animal.\n@param\ footprint\ Animal's\ initial\ footprint.\n\n
comment2.params=foodUnits
comment2.target=void\ eat(int)
comment2.text=Let\ the\ animal\ eat\ some\ food\ and\ thus\ increase\ its\ food\nlevel\ by\ the\ given\ value.\n@param\ foodUnits\ Number\ of\ food\ units\ to\ eat.\n\n
comment3.params=foodLevel
comment3.target=void\ setFoodLevel(int)
comment3.text=Set\ the\ current\ food\ level.\n@param\ int\ foodLevel\ New\ food\ level\ for\ object.\n\n
comment4.params=alive
comment4.target=void\ setAlive(boolean)
comment4.text=Kills\ the\ animal\ (or\ raises\ from\ the\ dead).\n@param\ alive\ Animal\ is\ dead\ if\ false,\ alive\ if\ true.\n\n
comment5.params=
comment5.target=int\ getFoodLevel()
comment5.text=Report\ the\ current\ food\ level\ of\ this\ animal.\n@param\ return\ Current\ food\ level.\n\n
comment6.params=
comment6.target=boolean\ isAlive()
comment6.text=Determines\ if\ animal\ is\ alive\ or\ not.\n@return\ True\ if\ animal\ is\ alive.\n\n
comment7.target=alive
comment8.params=foodUnits
comment8.target=void\ metabolise(int)
comment8.text=Let\ the\ animal\ metabolise\ some\ food\ and\ thus\ decrease\ its\nfood\ level\ by\ the\ given\ value.\n@param\ foodUnits\ Number\ of\ food\ units\ to\ metabolise.\n\n
comment9.target=foodLevel
numComments=10
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -