Class DumbSetup
java.lang.Object
DumbSetup
- All Implemented Interfaces:
- IBeastProvider
public class DumbSetup
- extends java.lang.Object
- implements IBeastProvider
A dumb setup routine that just creates a couple of dumb beasts and a random
walker at random locations in random directions, with boring packs.
Create your OWN beast providers as setups to test your beasties and packs,
and make neat animations! Square dancing, synchronized swimming, marching
bands, crop circles?...
- Author:
- CPSC 111 instructors
Constructor Summary |
DumbSetup(int width,
int height)
Create a dumb beast provider to set up a boring simulation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DumbSetup
public DumbSetup(int width,
int height)
- Create a dumb beast provider to set up a boring simulation.
- Parameters:
width
- the width of the simulation windowheight
- the height of the simulation window
getBeasts
public Beast[] getBeasts()
- Get the setup list of dumb beasts.
- Specified by:
getBeasts
in interface IBeastProvider
- Returns:
- a non-null (but possibly empty!) list of non-null Beasts