Skip to content

Commit

Permalink
Add some *ForCountry: query methods
Browse files Browse the repository at this point in the history
  • Loading branch information
labordep committed Sep 5, 2023
1 parent 2c3a69a commit 77aae0e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Gameye/GameyeCollection.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ GameyeCollection >> collectibles [
^collectibles
]

{ #category : #'collectibles - query' }
GameyeCollection >> collectiblesForCountry: aString [

^ self collectibles select:[ :c | c country = aString ]
]

{ #category : #'collectibles - query' }
GameyeCollection >> collectiblesForPlatform: aString [

Expand Down Expand Up @@ -262,6 +268,12 @@ GameyeCollection >> peripheralsCollectibles [
^self peripherals asOrderedCollection
]

{ #category : #'collectibles - query' }
GameyeCollection >> peripheralsForCountry: aString [

^ self peripheralsCollectibles select:[ :c | c country = aString ]
]

{ #category : #'collectibles - query' }
GameyeCollection >> peripheralsForPlatform: aString [

Expand Down Expand Up @@ -368,6 +380,12 @@ GameyeCollection >> systemsCollectibles [
^self systems asOrderedCollection
]

{ #category : #'collectibles - query' }
GameyeCollection >> systemsForCountry: aString [

^ self systemsCollectibles select:[ :c | c country = aString ]
]

{ #category : #'collectibles - query' }
GameyeCollection >> systemsForPlatform: aString [

Expand Down

0 comments on commit 77aae0e

Please sign in to comment.