Squeak Class Documentation category index | class index  
 
ChineseCheckerPiece
  category: Morphic-Games
  superclass: EllipseMorph
  subclasses:

I represent a player piece for Chinese Checkers. Mostly I act as an ellipse, but my special methods ensure that I cannot be picked up or dropped except in the proper circumstances.

Structure:
myBoard a ChineseCheckers morph
boardLoc my current logical position on the board.

instance methods
  all
  boardLoc
handlesMouseDown:
justDroppedInto:event:
mouseDown:
setBoard:loc:

class methods
  as yet unclassified
  includeInNewMorphMenu

instance methods
  all top  
 

boardLoc


 

handlesMouseDown:

Do I want to receive mouseDown events (mouseDown:, mouseMove:, mouseUp:)?


 

justDroppedInto:event:

This message is sent to a dropped morph after it has been dropped on -- and been accepted by -- a drop-sensitive morph


 

mouseDown:

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


 

setBoard:loc:


class methods
  as yet unclassified top  
 

includeInNewMorphMenu

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