maxScore
| [Previous] [Main] [Next] |
· | use ONLY Achievement objects (never strings) to award points;
|
· | set the 'points' property of each Achievement to its score;
|
· | define Achievement objects statically only (never use 'new' to create an Achievement dynamically)
|
· | if an Achievement can be awarded more than once, you must override its 'maxPoints' property to reflect the total number of points it will be worth when it is awarded the maximum number of times;
|
· | always award an Achievement through its awardPoints() or awardPointsOnce() method;
|
· | there exists at least one solution of the game in which every Achievement object is awarded
|
· | If you do not explicitly override gameMain.maxScore at all in your game code, then the game will automatically calculate the maximum score on the basis of the rules given above.
|
· | If you explicitly set gameMain.maxScore to nil, then the game will assume there is no defined maximum score, and the maximum score will not be mentioned at all in response to the SCORE and FULL SCORE commands.
|
· | If you explicitly set gameMain.maxScore to a number, that number will be used as the maximum score.
|