|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCone
alice.kareltherobot.Beeper
alice.kareltherobot.InfiniteBeepers
public class InfiniteBeepers
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.
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 |
---|
public InfiniteBeepers(int street, int avenue)
street
- the street on which to place the beepersavenue
- the avenue on which to place the beepers.Method Detail |
---|
public int howMany()
Beeper
howMany
in class Beeper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |