JavaScript is disabled on your browser.
Method Summary
All Methods Instance Methods Abstract Methods
boolean
boolean
Checks if the other egg group can breed with this egg group
Make sure it is consistent in both directions (i.e.
boolean
Checks if this egg group can breed with any of the given other egg groups
Will return true if a single one works
boolean
Checks if this egg group can breed with any of the given other egg groups
Will return true if a single one works
int
Gets the index of the egg group from the game's index
Gets the unique identifying key of the egg
Method Details
getIndex
int getIndex ()
Gets the index of the egg group from the game's index
Returns:
The game index
getKey
Gets the unique identifying key of the egg
Returns:
The identifying key
canBreed
Parameters:
first
- The first gender
second
- The second gender
Returns:
True if they can breed
canBreedWith
Checks if this egg group can breed with any of the given other egg groups
Will return true if a single one works
Parameters:
others
- The egg groups being checked
Returns:
True if it works
canBreedWith
boolean canBreedWith (EggGroup ... others)
Checks if this egg group can breed with any of the given other egg groups
Will return true if a single one works
Parameters:
others
- The egg groups being checked
Returns:
True if it works
canBreedWith
Checks if the other egg group can breed with this egg group
Make sure it is consistent in both directions (i.e. if it returns true in this one, it should return true in the other one)
Parameters:
other
- The other egg group to check
Returns:
True if they can breed together, false if not