Squeak Class Documentation category index | class index  
 
PlayingCardDeck
  category: Morphic-Games
  superclass: AlignmentMorph
  subclasses:

No comment. Sorry.

instance methods
  accessing
  acceptCardSelector:
addCard:
cardDoubleClickSelector:
cardDraggedSelector:
cardDroppedSelector:
cards
emptyDropPolicy:
hasCards
layout:
newSeed
removeAllCards
seed
seed:
stackingOrder:
stackingPolicy
stackingPolicy:
subDeckStartingAt:
target:
topCard

  dropping/grabbing
  acceptCard:default:
acceptDroppingMorph:event:
emptyDropNotOk:
emptyDropOk:
ifEmpty:
ifEmpty:ifNotEmpty:
inStackingOrder:
inStackingOrder:event:
inStackingOrder:onTopOf:
insertionIndexFor:
repelCard:
repelCard:default:
repelsMorph:event:
rootForGrabOf:

  events
  doubleClickOnCard:

  initialization
  initialize
newDeck
newSuit:

  layout
  staggerOffset

  printing
  printOn:

  private
  nilOrSymbol:

  shuffling/dealing
  deal
deal:
reverse
shuffle

class methods
  instance creation
  includeInNewMorphMenu
newDeck
newSuit:

  symbols
  suits
values

instance methods
  accessing top  
 

acceptCardSelector:


 

addCard:


 

cardDoubleClickSelector:


 

cardDraggedSelector:


 

cardDroppedSelector:


 

cards


 

emptyDropPolicy:

#any #inOrder #anyClub #anyDiamond #anyHeart #anySpade


 

hasCards


 

layout:

#grid #pile #stagger


 

newSeed


 

removeAllCards


 

seed


 

seed:


 

stackingOrder:

#ascending #descending


 

stackingPolicy


 

stackingPolicy:

#straight #altStraight #single #none


 

subDeckStartingAt:


 

target:


 

topCard


  dropping/grabbing top  
 

acceptCard:default:

if target and acceptCardSelector are both not nil, send to target, if not
nil answer
else answer aBoolean


 

acceptDroppingMorph:event:

This message is sent when a morph is dropped onto a morph that has agreed to accept the dropped morph by responding 'true' to the wantsDroppedMorph:Event: message. This default implementation just adds the given morph to the receiver.


 

emptyDropNotOk:


 

emptyDropOk:


 

ifEmpty:


 

ifEmpty:ifNotEmpty:


 

inStackingOrder:


 

inStackingOrder:event:


 

inStackingOrder:onTopOf:


 

insertionIndexFor:

Return the index at which the given morph should be inserted into the submorphs of the receiver.


 

repelCard:


 

repelCard:default:


 

repelsMorph:event:


 

rootForGrabOf:


  events top  
 

doubleClickOnCard:


  initialization top  
 

initialize


 

newDeck


 

newSuit:


  layout top  
 

staggerOffset


  printing top  
 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


  private top  
 

nilOrSymbol:


  shuffling/dealing top  
 

deal


 

deal:


 

reverse


 

shuffle


class methods
  instance creation top  
 

includeInNewMorphMenu

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


 

newDeck


 

newSuit:


  symbols top  
 

suits


 

values