Squeak Class Documentation category index | class index  
 
TetrisBoard
  category: Morphic-Games
  superclass: PasteUpMorph
  subclasses:

No comment. Sorry.

instance methods
  accessing
  game:
score:

  as yet unclassified
  cellSize
originForCell:

  button actions
  dropAllTheWay
moveLeft
moveRight
newGame
pause
rotateAntiClockWise
rotateClockWise
running

  data
  emptyAt:
numColumns
numRows

  drawing
 

  initialization
  initialize

  other
  checkForFullRows
storePieceOnBoard

  stepping
  step
stepTime

class methods
  as yet unclassified
  includeInNewMorphMenu

  instance creation
 

instance methods
  accessing top  
 

game:


 

score:


  as yet unclassified top  
 

cellSize


 

originForCell:


  button actions top  
 

dropAllTheWay


 

moveLeft


 

moveRight


 

newGame


 

pause


 

rotateAntiClockWise


 

rotateClockWise


 

running


  data top  
 

emptyAt:


 

numColumns


 

numRows


  drawing top  

  initialization top  
 

initialize


  other top  
 

checkForFullRows


 

storePieceOnBoard


  stepping top  
 

step

Do some periodic activity. Use startStepping/stopStepping to start and stop getting sent this message. The time between steps is specified by this morph's answer to the stepTime message. The generic version dispatches control to the player, if any. The nasty circumlocation about owner's transformation is necessitated by the flexing problem that the player remains in the properties dictionary both of the flex and the real morph. In the current architecture, only the top renderer's pointer to the player should actually be honored for the purpose of firing.


 

stepTime

Answer the desired time between steps in milliseconds. This default implementation requests that the 'step' method be called once every second.


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

Return true for all classes that can be instantiated from the menu


  instance creation top