Object Oriented Analysis - CMPUT301W23T20/QR-GO GitHub Wiki
Actor
Player
Responsibilities | Collaborators |
---|---|
Keep track of all QR codes player has scanned | QR |
Keep track of highest score, lowest score, and total score | Leaderboard |
Gets Rank from leaderboard | |
Update database with data from class |
Owner
Responsibilities | Collaborators |
---|
QR
Responsibilities | Collaborators |
---|---|
Generates a score from a QR's content and stores it | Player |
Generate avatar, name | QRComment |
Holds comments | Scanner |
Gets geolocation from Scanner | |
Holds list of Players that scanned it |
QRComment
Responsibilities | Collaborators |
---|---|
Holds the comment contents | Player |
Holds the commenter (who commented) | QR |
Holds comments |
Leaderboard
Responsibilities | Collaborators |
---|---|
Generate player rank based on points | Player |
Sort based on points | |
Display rankings |
Map
Responsibilities | Collaborators |
---|---|
Display QR codes found geographically across all players | QR |
Player |
Scanner
Responsibilities | Collaborators |
---|---|
Scans the QR code | QR |
Player |
Camera
Responsibilities | Collaborators |
---|---|
Records the object of the QR code | QR |
Player |
Profile
PlayerProfileViewActivity
Responsibilities | Collaborators |
---|---|
Displays Player username | Player |
Displays Player total score | |
Displays Player total scanned QR codes | |
Lets user navigate to ProfileQRListViewActivity |
ProfileQRListViewActivity
Responsibilities | Collaborators |
---|---|
Displays total number of QRs scanned by player | QR |
Displays list of all QR codes scanned by player | Player |
GreetingScreenActivity
Responsibilities | Collaborators |
---|---|
Displays a sign up screen | Player |
Allows user to enter a username | |
Allows user to enter a email | |
Shows message if user input is invalid | |
Sends user input to Player class |