home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
drdobbs
/
1990
/
05
/
ayers
/
checker.cls
< prev
next >
Wrap
Text File
|
1990-02-24
|
701b
|
40 lines
MarketActor subclass: #Checker
instanceVariableNames:
'bagger customer '
classVariableNames: ''
poolDictionaries: '' !
!Checker class methods !
alternateImageName
^'PersonLeft'.! !
!Checker methods !
bagger:aBagger
bagger := aBagger.!
checkOutCustomer
customer := self receive.!
gotIt
running
ifTrue:[
self
display;
send:#removeItemFromCart to:customer].!
release
bagger := nil. customer := nil. super release.!
takeItem
running
ifTrue:[
self
animate;
send:#takeItem to:bagger;
sleep:1;
send:#gotIt to:customer].! !