Squeak Class Documentation category index | class index  
 
AliceWorld
  category: Balloon3D-Alice Worlds
  superclass: Object
  subclasses:

No comment. Sorry.

instance methods
  accessing
  getActorClassList
getCameras
getDefaultCamera
getLights
getNamespace
getScene
getScheduler
getSharedMeshDict
getSharedTextureDict
getUndoStack

  creating actors
  fixNameFrom:
uniqueNameFrom:

  creating scripts
  doInOrder:
doTogether:

  drawing
  renderWorld:

  initialize-reset-release
  initialize
release
reset

  private
  getTextOutputWindow

  temporary
  makeActorFrom:
makeLight
makeLight:
renderWonderland:

  undoing actions
  undo

  user feedback
  addOutputText:
reportErrorToUser:

class methods
  actor prototype mgmt
  removeActorPrototypesFromSystem

  class initialization
  initialize

  instance creation
  new

instance methods
  accessing top  
 

getActorClassList

Return the list of actor classes


 

getCameras

Return the list of cameras in the scene


 

getDefaultCamera

Return the default camera, which is the camera at the front of the camera list


 

getLights

Return the list of lights in the scene


 

getNamespace

Return this world's namespace


 

getScene

Return the world's scene


 

getScheduler

Return this world's scheduler


 

getSharedMeshDict

Return the shared mesh dictionary


 

getSharedTextureDict

Return the shared texture dictionary


 

getUndoStack

Return the world's undo stack


  creating actors top  
 

fixNameFrom:

Fix the name to be a valid Smalltalk name (e.g., so that we can compile it as an inst var and accessor message)


 

uniqueNameFrom:

If aName is unique to this world's namespace, returns that name. Otherwise creates a unique variant and returns that.


  creating scripts top  
 

doInOrder:

Create a nameless inOrder script with the specified commands


 

doTogether:

Create a nameless together script with the specified commands


  drawing top  
 

renderWorld:

Tell all the objects in the World to render themselves.


  initialize-reset-release top  
 

initialize

Initialize the Alice world


 

release

This method cleans up the world.


 

reset

Reset this Wonderland


  private top  
 

getTextOutputWindow

Returns the current text output window


  temporary top  
 

makeActorFrom:

Creates a new actor using the specification from the given file


 

makeLight

Create a light of the specified type and add it to the Wonderland


 

makeLight:

Create a light of the specified type and add it to the Wonderland


 

renderWonderland:

Temporary method


  undoing actions top  
 

undo

Undo the last action the user performed in the Wonderland. This pulls a block context off the animation stack and executes it.


  user feedback top  
 

addOutputText:

Appends the given text to the Alice output window


 

reportErrorToUser:

When any object in an Alice World discovers an error it creates an error report and then calls this method to display the error to the user.


class methods
  actor prototype mgmt top  
 

removeActorPrototypesFromSystem

Clean out all the actor prototypes - this involves removing those classes from the Smalltalk dictionary


  class initialization top  
 

initialize

Initialize the AliceWorld class by creating the ActorPrototypeClasses collection


  instance creation top  
 

new

AliceWorld new