Squeak Class Documentation category index | class index  
 
SameGameTile
  category: Morphic-Games
  superclass: SimpleSwitchMorph
  subclasses:

I am a single tile for the SameGame. I act much like a switch.

instance methods
  accessing
  color:
disabled
disabled:
insetColor
setSwitchState:
switchState

  drawing
 

  events
  doButtonAction
mouseDown:
mouseMove:
mouseUp:

  initialization
  initialize

class methods
  as yet unclassified
  includeInNewMorphMenu

instance methods
  accessing top  
 

color:

Set the receiver's color. Directly set the color if appropriate, else go by way of fillStyle


 

disabled


 

disabled:


 

insetColor

Use my own color for insets


 

setSwitchState:


 

switchState


  drawing top  

  events top  
 

doButtonAction

Perform the action of this button. The last argument of the message sent to the target is the new state of this switch.


 

mouseDown:

Handle a mouse down event. The default response is to let my eventHandler, if any, handle it.


 

mouseMove:

don't do anything, here


 

mouseUp:

don't do anything, here


  initialization top  
 

initialize


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

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