Files
G4G0-1/Semester 1/Programming 1/Homework 2/Game.ctxt
2024-01-15 20:14:10 +00:00

57 lines
2.5 KiB
Plaintext

#BlueJ class context
comment0.params=
comment0.target=Game()
comment0.text=\n\ Default\ Constructor\ for\ "My\ First\ Game"\n
comment1.params=title\ objective\ costInPence\ gameManager
comment1.target=Game(java.lang.String,\ java.lang.String,\ int,\ Manager)
comment1.text=\n\ Old\ non-default\ constructor.\n\ public\ Game(\ String\ title,\ String\ objective,\ int\ costInPence\ )\n
comment10.params=newCostInPence
comment10.target=void\ setCostInPence(int)
comment10.text=\n\ Sets\ @costInPence\ to\ a\ user-input\ value.\n
comment11.params=newBestScore
comment11.target=void\ setBestScore(int)
comment11.text=\n\ Sets\ @bestScore\ to\ a\ user-input\ value\n
comment12.params=newBestScoreName
comment12.target=void\ setBestScoreName(java.lang.String)
comment12.text=\ \n\ Sets\ @bestScoreName\ to\ a\ user-input\ value.\n
comment13.params=newGameManager
comment13.target=void\ setGameManager(Manager)
comment13.text=\n\ Set\ @gameManager\ to\ a\ new\ gameManager\ object.\n
comment14.params=
comment14.target=void\ download()
comment14.text=\n\ Simulates\ a\ user\ downloading\ the\ game.\n
comment15.params=playerScore\ playerName
comment15.target=void\ checkScore(int,\ java.lang.String)
comment15.text=\n\ Checks\ to\ see\ if\ player's\ score\ is\ the\ highest.\ If\ so,\ replace\ highest\ score\ and\ name.\n
comment16.params=
comment16.target=void\ printReport()
comment16.text=\n\ Prints,\ to\ terminal,\ the\ fields\ and\ their\ values\ in\ a\ strict\ format.\n
comment17.params=
comment17.target=int\ calculateEarnings()
comment17.text=\n\ Return\ earnings\ by\ calculating\ @numberOfDownloads\ *\ @costInPence.\n
comment2.params=
comment2.target=java.lang.String\ getTitle()
comment2.text=\n\ Returns\ the\ @title\ value.\n
comment3.params=
comment3.target=java.lang.String\ getObjective()
comment3.text=\n\ Returns\ the\ @objective\ value.\n
comment4.params=
comment4.target=int\ getCostInPence()
comment4.text=\n\ Returns\ the\ @costInPence\ value.\n
comment5.params=
comment5.target=int\ getBestScore()
comment5.text=\n\ Returns\ the\ @bestScore\ value.\n
comment6.params=
comment6.target=java.lang.String\ getBestScoreName()
comment6.text=\n\ Returns\ the\ @bestScoreName\ value.\n
comment7.params=
comment7.target=Manager\ getManager()
comment7.text=\n\ Return\ the\ @gameManager\ value.\n
comment8.params=newTitle
comment8.target=void\ setTitle(java.lang.String)
comment8.text=\n\ Sets\ @title\ to\ a\ user-input\ value.\n
comment9.params=newObjective
comment9.target=void\ setObjective(java.lang.String)
comment9.text=\n\ Sets\ @objective\ to\ a\ user-input\ value.\n
numComments=18