|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectAllBeastsPack
public class AllBeastsPack
A pack that just gives back all the beasts in the world.
| Constructor Summary | |
|---|---|
AllBeastsPack(IBeastProvider provider)
Construct a new AllBeastsPack. |
|
| Method Summary | |
|---|---|
BeastInfo |
getLeader(BeastInfo beast)
Return the leader of the pack: whoever goes first. |
BeastInfo[] |
getPack(BeastInfo beast)
Return a pack of all the beasts in the world. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AllBeastsPack(IBeastProvider provider)
provider - a non-null provider defining the world of beasts
available| Method Detail |
|---|
public BeastInfo[] getPack(BeastInfo beast)
getPack in interface IPackFinderbeast - info about the beast whose pack we're constructing
public BeastInfo getLeader(BeastInfo beast)
getLeader in interface IPackFinderbeast - info about the beast whose pack leader we're finding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||