alice.kareltherobot
Class InfiniteBeepers

java.lang.Object
  extended by Cone
      extended by alice.kareltherobot.Beeper
          extended by alice.kareltherobot.InfiniteBeepers

public class InfiniteBeepers
extends Beeper

A class of objects representing infinitely many beepers on a corner. If you click on a beeper in the world, it will tell you how many beepers are on that corner.

Version:
1.0 (Karel-Alice) February 2010
Author:
Joseph Bergin

Constructor Summary
InfiniteBeepers(int street, int avenue)
          Create infinitely many beepers on a corner
 
Method Summary
 int howMany()
          How many beeers are on the corner that this one occupies
 
Methods inherited from class alice.kareltherobot.Beeper
avenue, getWorld, street
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfiniteBeepers

public InfiniteBeepers(int street,
                       int avenue)
Create infinitely many beepers on a corner

Parameters:
street - the street on which to place the beepers
avenue - the avenue on which to place the beepers.
Method Detail

howMany

public int howMany()
Description copied from class: Beeper
How many beeers are on the corner that this one occupies

Overrides:
howMany in class Beeper
Returns:
the number of beepers on the same corner as this object.