Command-dispatching Ballworld with Inter-ball Interactions and Algorithm-based Ball Configuring

COMP 310  Java Resources  Eclipse Resources

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

This examples demonstrates the capabilities of a command-dispatching architecture, especially in how it enables inter-ball communications and interactions plus adds the ability to use algorithm-based ball configuring. This enables the ball creation and behavior composing mechanism to be shared between different types of strategies.

IMPORTANT: A configuration algorithm for a paint strategy must ALWAYS be included in the selected configuration algorithm when creating a new ball or when switching to a new configuration!

The following different types of strategies are available for use:

The following paint strategies are available for use:

The following interaction strategies are available for use:

 

Questions:   What happens when you make balls that have an interaction strategy but no interaction detection?    What happens when you add a ball that does have interaction detection?

 

Click here to download and launch the demo.   Please accept any security requests.

 

[ Back to the Ballworld Demos ]

Trouble Running the Demos?

 

© 2021 by Stephen Wong