Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial clean up of the startup of the display and the way the world …
…uses the windows.
- Loading branch information
Showing
26 changed files
with
424 additions
and
363 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
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
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
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
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
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
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,44 @@ | ||
Class { | ||
#name : #AbstractWorldRenderer, | ||
#superclass : #Object, | ||
#instVars : [ | ||
'world' | ||
], | ||
#category : #'Morphic-Core-Worlds' | ||
} | ||
|
||
{ #category : #accessing } | ||
AbstractWorldRenderer class >> forWorld: aWorld [ | ||
|
||
^ self new | ||
world: aWorld; | ||
yourself | ||
] | ||
|
||
{ #category : #accessing } | ||
AbstractWorldRenderer class >> priority [ | ||
|
||
^ 0 | ||
] | ||
|
||
{ #category : #activation } | ||
AbstractWorldRenderer >> activate [ | ||
|
||
self subclassResponsibility | ||
] | ||
|
||
{ #category : #activation } | ||
AbstractWorldRenderer >> deactivate [ | ||
|
||
self subclassResponsibility | ||
] | ||
|
||
{ #category : #accessing } | ||
AbstractWorldRenderer >> world [ | ||
^ world | ||
] | ||
|
||
{ #category : #accessing } | ||
AbstractWorldRenderer >> world: anObject [ | ||
world := anObject | ||
] |
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
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,91 @@ | ||
Class { | ||
#name : #NullWorldRenderer, | ||
#superclass : #AbstractWorldRenderer, | ||
#category : #'Morphic-Core-Worlds' | ||
} | ||
|
||
{ #category : #accessing } | ||
NullWorldRenderer class >> priority [ | ||
|
||
^ 0 | ||
] | ||
|
||
{ #category : #activation } | ||
NullWorldRenderer >> activate [ | ||
] | ||
|
||
{ #category : #operations } | ||
NullWorldRenderer >> activateCursor: aCursor withMask: maskForm [ | ||
|
||
"We don't activate nothing" | ||
] | ||
|
||
{ #category : #accessing } | ||
NullWorldRenderer >> actualScreenSize [ | ||
|
||
^ 240@120 | ||
] | ||
|
||
{ #category : #accessing } | ||
NullWorldRenderer >> canvas [ | ||
|
||
^ nil | ||
] | ||
|
||
{ #category : #accessing } | ||
NullWorldRenderer >> canvas: x [ | ||
|
||
] | ||
|
||
{ #category : #'display box access' } | ||
NullWorldRenderer >> checkForNewScreenSize [ | ||
|
||
"Do nothing" | ||
] | ||
|
||
{ #category : #activation } | ||
NullWorldRenderer >> deactivate [ | ||
] | ||
|
||
{ #category : #operations } | ||
NullWorldRenderer >> deferUpdates: aValue [ | ||
|
||
^ aValue value | ||
] | ||
|
||
{ #category : #operations } | ||
NullWorldRenderer >> displayWorldState: aWorldState ofWorld: aWorld submorphs: submorphs [ | ||
|
||
"Do Nothing" | ||
] | ||
|
||
{ #category : #operations } | ||
NullWorldRenderer >> doDeferredUpdatingFor: aWorld [ | ||
|
||
"Do Nothing" | ||
] | ||
|
||
{ #category : #operations } | ||
NullWorldRenderer >> forceDamageToScreen: allDamage [ | ||
|
||
"Do Nothing" | ||
|
||
] | ||
|
||
{ #category : #operations } | ||
NullWorldRenderer >> forceDisplayUpdate [ | ||
|
||
" Do Nothing " | ||
] | ||
|
||
{ #category : #'display box access' } | ||
NullWorldRenderer >> usableArea [ | ||
|
||
^ self actualScreenSize | ||
] | ||
|
||
{ #category : #'display box access' } | ||
NullWorldRenderer >> viewBox [ | ||
|
||
^ self actualScreenSize | ||
] |
Oops, something went wrong.