COMP 504
Fall 2015

Composition-based Ballworld Demo with Multiple Switchers

Home  Info  Owlspace   Java Resources  Eclipse Resources  Piazza  SharePoint

The demo should appear on your screen in its own window. To restart the demo, refresh/reload this page.

Note:  it is an Honor Code violation to attempt to decompile any supplied code

There is a web page that explains how this demo makes multiple switcher balls that is only available via a link in your particular class's Owlspace Rsources site.

This composition-based Ballworld demonstrates the ability of composition-based systems to add dynamically modifiable behaviors to a system, plus adds the ability to create multiple, independent switcher strategies.

If you hold the mouse over any button, a tooltip will pop up that will tell you what that button does.

The following different types of strategies are available for use, plus any switcher strategies created:

Try combining switcher strategies and see what happens!

Important Design Notes

This code has the following design features:

 

Click for full-size image
Ballworld composition plus multiple switchers


© 2015 by Stephen Wong