public class NegativeHand extends BasicHand
| Constructor and Description |
|---|
NegativeHand(int size) |
NegativeHand(NegativeHand hand) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
CardColour |
getKnownColour(int slot)
Get the known colour of this slot, from the perspective of the player who's hand it is.
|
Integer |
getKnownValue(int slot)
Get the known value of this slot, from the perspective of the player who's hand it is.
|
CardColour[] |
getPossibleColours(int slot)
get possible colours for a given slot.
|
int[] |
getPossibleValues(int slot)
get possible values for a given slot.
|
int |
hashCode() |
boolean |
isPossible(int slot,
Card card)
check if the card is possible, based on the owner's prespective
|
void |
setKnownColour(CardColour colour,
Integer[] slots)
Sets the known colour of a slot from the perspective of the owner.
|
void |
setKnownValue(Integer value,
Integer[] slots)
Sets the known value of a slot from the perspective of the owner.
|
bindCard, getCard, getSize, hasCard, hasColour, hasValue, init, isCompletePossible, iterator, setCard, setHasCard, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic NegativeHand(NegativeHand hand)
public NegativeHand(int size)
public CardColour getKnownColour(int slot)
BasicHandFor this version of the hand class, this is worked out based on explicitly observed tell actions. It will not take into account negative information.
getKnownColour in interface HandgetKnownColour in class BasicHandslot - the slot to querypublic Integer getKnownValue(int slot)
BasicHandFor this version of the hand class, this is worked out based on explicitly observed tell actions. It will not take into account negative information.
getKnownValue in interface HandgetKnownValue in class BasicHandslot - the slot to querypublic void setKnownColour(CardColour colour, Integer[] slots)
BasicHandThis method is used to inform the hand about the card from the owner's perspective (tell actions).
setKnownColour in interface HandsetKnownColour in class BasicHandcolour - the colour to assign to the slotsslots - the slots to assign the colour to.public void setKnownValue(Integer value, Integer[] slots)
BasicHandThis method is used to inform the hand about the card from the owner's perspective (tell actions).
setKnownValue in interface HandsetKnownValue in class BasicHandvalue - the value to assign to the slotsslots - the slots to assign the value to.public int[] getPossibleValues(int slot)
BasicHandgetPossibleValues in interface HandgetPossibleValues in class BasicHandslot - the slot to checkpublic CardColour[] getPossibleColours(int slot)
BasicHandgetPossibleColours in interface HandgetPossibleColours in class BasicHandslot - the slot to checkpublic boolean isPossible(int slot,
Card card)
BasicHandisPossible in interface HandisPossible in class BasicHandslot - the slot to checkcard - the card we are consideringCopyright © 2017 FOSS Galaxy. All rights reserved.