Package | Description |
---|---|
cusack.hcg.games.pebble.algorithms.mergePebbles |
Modifier and Type | Method and Description |
---|---|
static CompositePebble |
CompositePebble.mergePebbles(CompositePebble a,
CompositePebble b) |
CompositePebble |
CompositePebble.mergeWith(CompositePebble b) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<CompositePebble> |
PebbleList.getPebbles() |
java.util.ArrayList<CompositePebble> |
PebbleList2.getProcessedPebbles()
Deprecated.
|
java.util.ArrayList<CompositePebble> |
PebbleList.processNext()
Combine the first unprocessed pebble with all of the processed pebbles AND with itself.
|
Modifier and Type | Method and Description |
---|---|
void |
PebbleList.addPebble(CompositePebble cp)
Add the pebble without checking whether or not it is better/worse than anything already on the list.
|
boolean |
CompositePebble.betterThan(CompositePebble other)
Returns true if and only if 'other' contains every PurePebble this object does, and the mass of each PurePebble
(that is, from each source) of 'other' is at least the mass in this object.
|
boolean |
PebbleList2.isPermissible(CompositePebble cp)
Deprecated.
Return true if and only if there is no pebble P in the current list that is better than cp.
|
boolean |
PebbleList.isPermissible(CompositePebble cp)
Return true if and only if there is no pebble P in the current list that is better than cp.
|
static CompositePebble |
CompositePebble.mergePebbles(CompositePebble a,
CompositePebble b) |
CompositePebble |
CompositePebble.mergeWith(CompositePebble b) |
void |
PebbleList.removeCompositePebble(CompositePebble toRemove) |
boolean |
PebbleList2.tryToAddPebble(CompositePebble cp)
Deprecated.
Attempt to add the CompositePebble cp to the list.
|
boolean |
PebbleList.tryToAddPebble(CompositePebble cp)
Attempt to add the CompositePebble cp to the list.
|
Constructor and Description |
---|
CompositePebble(CompositePebble p) |