Interface of a scorecard where a player's progress is stored into.
| 4 | |
| 5 | /** Interface of a scorecard where a player's progress is stored into. */ |
| 6 | public interface ScoreCard { |
| 7 | |
| 8 | /** |
| 9 | * Marks a challenge as completed. |
| 10 | * |
| 11 | * @param challenge Challenge object which is completed |
| 12 | */ |
| 13 | void completeChallenge(ChallengeDefinition challenge); |
| 14 | |
| 15 | /** |
| 16 | * Checks if the given challenge is marked as completed in the scorecard. |
| 17 | * |
| 18 | * @param challenge Challenge object tested for completion |
| 19 | * @return true if challenge solved correctly |
| 20 | */ |
| 21 | boolean getChallengeCompleted(ChallengeDefinition challenge); |
| 22 | |
| 23 | /** |
| 24 | * Gives a 0-100 implementation completeness score. |
| 25 | * |
| 26 | * @return float with completeness percentage |
| 27 | */ |
| 28 | float getProgress(); |
| 29 | |
| 30 | /** |
| 31 | * Gives total number of received points. |
| 32 | * |
| 33 | * @return int with points |
| 34 | */ |
| 35 | int getTotalReceivedPoints(); |
| 36 | |
| 37 | /** |
| 38 | * Resets the status of a given challenge its entry in the score-card. |
| 39 | * |
| 40 | * @param challenge challenge of which the status should be reset. |
| 41 | */ |
| 42 | void reset(ChallengeDefinition challenge); |
| 43 | } |
no outgoing calls
no test coverage detected