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

No comment. Sorry.

instance methods
  accessing
  color:
disabled
disabled:
doButtonAction:
drawOn:
isMine
isMine:
mineFlag
mineFlag:
mouseDown:
nearMines
nearMines:
switchState
switchState:

  events
  mouseMove:
mouseUp:

  initialization
  initialize
preferredColor

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:


 

doButtonAction:

Perform the action of this button. The first argument of the message sent to the target is the current state of this switch,
the second argument is the modifier button state.


 

drawOn:

Draw a rectangle with a solid, inset, or raised border.
Note: the raised border color *and* the inset border color are generated
from the receiver's own color, instead of having the inset border color
generated from the owner's color, as in BorderedMorph.


 

isMine


 

isMine:


 

mineFlag


 

mineFlag:


 

mouseDown:

The only real alternative mouse clicks are the yellow button or the shift key. I will treat them as the same thing, and ignore two button presses for now. I am keeping this code around, because it is the only documentation I have of MouseButtonEvent.


 

nearMines


 

nearMines:


 

switchState


 

switchState:


  events top  
 

mouseMove:

don't do anything, here


 

mouseUp:

don't do anything, here


  initialization top  
 

initialize


 

preferredColor

PreferredColor _ nil <-- to reset cache


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

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