-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
morphic/die morph: add accessors for #dieValue and #faces, recategori…
…ze, fix indents
- Loading branch information
Showing
19 changed files
with
69 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
OrderedDictionary { | ||
'SmalltalkSources\/SBE-Environment.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-Morphic.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-QuickTour.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-Quinto.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-Streams.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-Testing.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-Extract.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/BaselineOfSBE.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-Monticello.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources\/SBE-Tests.package' : #SquotCypressCodeSerializer | ||
'SmalltalkSources/SBE-Environment.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-Morphic.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-QuickTour.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-Quinto.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-Streams.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-Testing.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-Extract.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/BaselineOfSBE.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-Monticello.package' : #SquotCypressCodeSerializer, | ||
'SmalltalkSources/SBE-Tests.package' : #SquotCypressCodeSerializer | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
SquotTrackedObjectMetadata { | ||
#objectClassName : #PackageInfo, | ||
#id : UUID [ 'd54694f920b5d7418b39e029092e1f4c' ], | ||
#objectsReplacedByNames : true, | ||
#serializer : #SquotCypressCodeSerializer | ||
} |
8 changes: 4 additions & 4 deletions
8
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/dieValue..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
die logic | ||
accessing | ||
dieValue: aNumber | ||
|
||
(aNumber isInteger and: [aNumber between: 1 and: faces]) ifTrue: [ | ||
dieValue := aNumber. | ||
self changed]. | ||
self assert: (aNumber isInteger and: [aNumber between: 1 and: self faces]). | ||
dieValue := aNumber. | ||
self changed. |
4 changes: 4 additions & 0 deletions
4
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/dieValue.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
dieValue | ||
|
||
^ dieValue |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/drawDotOn.at..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
drawing | ||
drawDotOn: aCanvas at: aPoint | ||
|
||
aCanvas | ||
|
10 changes: 5 additions & 5 deletions
10
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/drawOn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
drawing | ||
drawOn: aCanvas | ||
|
||
super drawOn: aCanvas. | ||
(self perform: ('face' , dieValue) asSymbol) | ||
drawing | ||
drawOn: aCanvas | ||
|
||
super drawOn: aCanvas. | ||
(self perform: ('face' , self dieValue) asSymbol) | ||
do: [:aPoint | self drawDotOn: aCanvas at: aPoint]. |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face1.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face1 | ||
|
||
^ {0.5 @ 0.5} |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face2.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face2 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.75} |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face3.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face3 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.75 . 0.5 @ 0.5} |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face4.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face4 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.25 . 0.75 @ 0.75 . 0.25 @ 0.75} |
4 changes: 2 additions & 2 deletions
4
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face5.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face5 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.25 . 0.75 @ 0.75 . 0.25 @ 0.75 . 0.5 @ 0.5} | ||
^ {0.25 @ 0.25 . 0.75 @ 0.25 . 0.75 @ 0.75 . 0.25 @ 0.75 . 0.5 @ 0.5} |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face6.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face6 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.25 . 0.75 @ 0.75 . 0.25 @ 0.75 . 0.25 @ 0.5 . 0.75 @ 0.5} |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face7.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face7 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.25 . 0.75 @ 0.75 . 0.25 @ 0.75 . 0.25 @ 0.5 . 0.75 @ 0.5 . 0.5 @ 0.5} |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face8.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face8 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.25 . 0.75 @ 0.75 . 0.25 @ 0.75 . 0.25 @ 0.5 . 0.75 @ 0.5 . 0.5 @ 0.5 . 0.5 @ 0.25} |
2 changes: 1 addition & 1 deletion
2
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/face9.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
die logic | ||
faces | ||
face9 | ||
|
||
^ {0.25 @ 0.25 . 0.75 @ 0.25 . 0.75 @ 0.75 . 0.25 @ 0.75 . 0.25 @ 0.5 . 0.75 @ 0.5 . 0.5 @ 0.5 . 0.5 @ 0.25 . 0.5 @ 0.75} |
10 changes: 5 additions & 5 deletions
10
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/faces..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
die logic | ||
faces: aNumber | ||
"Set the number of faces" | ||
|
||
self assert: (aNumber isInteger and: [aNumber between: 1 and: 9]). | ||
accessing | ||
faces: aNumber | ||
"Set the number of faces" | ||
|
||
self assert: (aNumber isInteger and: [aNumber between: 1 and: 9]). | ||
faces := aNumber. |
4 changes: 4 additions & 0 deletions
4
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/faces.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
faces | ||
|
||
^ faces |
1 change: 1 addition & 0 deletions
1
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
initialization | ||
initialize | ||
|
||
super initialize. | ||
self | ||
extent: 50 @ 50; | ||
|
46 changes: 24 additions & 22 deletions
46
SmalltalkSources/SBE-Morphic.package/SBEDieMorph.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
{ | ||
"class" : { | ||
"faces:" : "on 8/16/2007 15:37" }, | ||
"instance" : { | ||
"dieValue:" : "ct 9/26/2022 13:06", | ||
"drawDotOn:at:" : "pre 12/2/2020 18:44", | ||
"drawOn:" : "ct 9/26/2022 13:06", | ||
"face1" : "pre 12/2/2020 18:44", | ||
"face2" : "pre 12/2/2020 18:45", | ||
"face3" : "pre 12/2/2020 18:45", | ||
"face4" : "pre 12/2/2020 18:45", | ||
"face5" : "pre 12/2/2020 18:45", | ||
"face6" : "pre 12/2/2020 18:45", | ||
"face7" : "pre 12/2/2020 18:46", | ||
"face8" : "pre 12/2/2020 18:46", | ||
"face9" : "pre 12/2/2020 18:46", | ||
"faces:" : "pre 12/2/2020 18:46", | ||
"handlesMouseDown:" : "pre 12/2/2020 18:46", | ||
"initialize" : "pre 12/2/2020 18:52", | ||
"mouseDown:" : "pre 12/2/2020 18:47", | ||
"step" : "pre 12/2/2020 18:48", | ||
"stepTime" : "pre 12/2/2020 18:48" } } | ||
{ | ||
"class" : { | ||
"faces:" : "on 8/16/2007 15:37" }, | ||
"instance" : { | ||
"dieValue" : "ct 9/27/2022 08:33", | ||
"dieValue:" : "ct 9/27/2022 08:34", | ||
"drawDotOn:at:" : "pre 12/2/2020 18:44", | ||
"drawOn:" : "ct 9/27/2022 08:34", | ||
"face1" : "pre 12/2/2020 18:44", | ||
"face2" : "pre 12/2/2020 18:45", | ||
"face3" : "pre 12/2/2020 18:45", | ||
"face4" : "pre 12/2/2020 18:45", | ||
"face5" : "ct 9/27/2022 08:32", | ||
"face6" : "pre 12/2/2020 18:45", | ||
"face7" : "pre 12/2/2020 18:46", | ||
"face8" : "pre 12/2/2020 18:46", | ||
"face9" : "pre 12/2/2020 18:46", | ||
"faces" : "ct 9/27/2022 08:33", | ||
"faces:" : "ct 9/27/2022 08:33", | ||
"handlesMouseDown:" : "pre 12/2/2020 18:46", | ||
"initialize" : "ct 9/27/2022 08:32", | ||
"mouseDown:" : "pre 12/2/2020 18:47", | ||
"step" : "pre 12/2/2020 18:48", | ||
"stepTime" : "pre 12/2/2020 18:48" } } |