Skip to content

Object Oriented Analysis(CRC card)

ganfanlen edited this page Feb 13, 2023 · 35 revisions

Player

Responsibility Collaborators
represent a player Database
keeps its corresponding information Camera
Comment
DisplayPlayerInfoButton

Database

Responsibility Collaborators
stores the information of players and QR codes QrCode
Player
Geolocation

QRCode

Responsibility Collaborators
store corresponding QR Code QrCodeScanner
Database

QrCodeScanner

Responsibility Collaborators
Scan photo and process it to return the QrCode QrCode
ScanningButton

Geolocation

Responsibility Collaborators
represent and stores the corresponding information of a location Database

Comment

Responsibility Collaborators
represent and store the corresponding information of a comment Player

Camera

Responsibility Collaborators
Implement with the functionality of taking pictures QrCodeScanner

Profile

Responsibility Collaborators
Displays player's corresponding data DisplayPlayerInfoButton
provides UI to update Player Player

Map

Responsibility Collaborators
Displays nearby QR codes Database
Geolocation

Leaderboard

Responsibility Collaborators
Displays top players as a list Player
Database

PlayerSearchPage

Responsibility Collaborators
Implements interface to search for other players Player
Database

WriteComment

Responsibility Collaborator
retrieve comment Database
Send comment to DB for storing player
Comment
Profile

SearchPlayerButton

Responsibility Collaborator
search for user Database
player

DisplayNearbyCodeButton

Responsibility Collaborator
Display nearby QRcode Database
QRCode
Map

ScanningButton

Responsibility Collaborator
Open camera for scanning Database
QRCode

DisplayPlayerInfoButton

Responsibility Collaborator
represent a Player Database
player

PlayerSearchPage

Responsibility Collaborator
Implements interface to search for other player Database
player

Part2-OOA-CRC

Clone this wiki locally