Squeak Class Documentation category index | class index  
 
UnscriptedPlayer
  category: Morphic-Scripting
  superclass: Player
  subclasses: UnscriptedCardPlayer

My instances are Player objects that have not been scripted, and which hence do not require a unique scripts dictionary, etc. As soon as the needed, I am transformed automatically into a unique subclass of Player.

instance methods
  as yet unclassified
  copyUniClassWith:

  queries
  belongsToUniClass
hasUserDefinedScripts
hasUserDefinedSlots
wantsSteps

  uniclass
  assureUniClass
rootClassForUniclasses

class methods
  as yet unclassified
  acceptsLoggingOfCompilation
isSystemDefined
isUniClass
newUserInstance
officialClass
wantsChangeSetLogging

  reference
  ephemeralPlayerRef
referenceSelectorFor:

instance methods
  as yet unclassified top  
 

copyUniClassWith:

my class is a subclass of Player. Return another class just like my class. Share the costume list.


  queries top  
 

belongsToUniClass

UnscriptedPlayer reimplements to false


 

hasUserDefinedScripts


 

hasUserDefinedSlots

Answer whether the receiver has any user-defined slots, in the omniuser sense of the term. This is needed to allow Viewers to look at any object, not just at Players.


 

wantsSteps

Has no scripts


  uniclass top  
 

assureUniClass

Create a uniclass and become the receiver into it


 

rootClassForUniclasses

Answer the class that should be subclassed when the receiver is made into a uniclass


class methods
  as yet unclassified top  
 

acceptsLoggingOfCompilation

weird name is so that it will come lexically before #compile, so that a clean build can make it through. 7/7/96 sw


 

isSystemDefined

Answer true if the receiver is a system-defined class, and not a UniClass (an instance-specific lightweight class)


 

isUniClass

UnscriptedPlayer reimplements to false


 

newUserInstance

Answer an instance of an appropriate class to serve as a user object in the containment hierarchy


 

officialClass

We want to make a new instance of the receiver, which is a subclass of Player. Answer who to make a new subclass of. Also used to tell if a given class is a UniClass, existing only for its single instance.


 

wantsChangeSetLogging

Log changes for Player itself, but not for automatically-created subclasses like Player1, Player2, but *do* log it for uniclasses that have been manually renamed.


  reference top  
 

ephemeralPlayerRef

UnscriptedPlayer ephemeralPlayerRef


 

referenceSelectorFor:

The use of this is for immediate evaluation of lines of script in a Viewer. The class inst var 'ephemeralPlayerRef' is constantly reused for this purpose.