|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Items.Basic.StdItem
com.planet_ink.coffee_mud.Items.MiscMagic.StdPlayingCard
public class StdPlayingCard
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
---|
Wearable.CODES |
Field Summary | |
---|---|
protected int |
oldAbility
|
Fields inherited from class com.planet_ink.coffee_mud.Items.Basic.StdItem |
---|
affectPhyStats, affects, baseGoldValue, basePhyStats, behaviors, cachedImageName, CODES, databaseID, description, destroyed, displayText, dispossessionTime, material, me, miscText, myContainer, myUses, myWornCode, name, owner, phyStats, properWornBitmap, rawImageName, riding, scripts, secretIdentity, tickCtr, tickStatus, wornLogicalAnd, xtraValues |
Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.PlayingCard |
---|
cards, suits |
Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
---|
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD |
Constructor Summary | |
---|---|
StdPlayingCard()
|
Method Summary | |
---|---|
protected boolean |
abilityImbuesMagic()
|
int |
getBitEncodedSuit()
Returns the bitmap value that represents the suit of this card. |
int |
getBitEncodedValue()
Returns the full bit-encoded value of this card, with suit | value. |
java.lang.String |
getCardValueLongDescription(int value)
Returns the english-word representation of the value passed to this method. |
java.lang.String |
getCardValueShortDescription(int value)
Returns partial english-word representation of the value passed to this method. |
java.lang.String |
getStringEncodedSuit()
Returns the suit of this card as a single letter string |
java.lang.String |
getStringEncodedValue()
Return the value of this card as a short string face cards are only a single letter |
java.lang.String |
getSuitDescription(int suit)
Returns an english-word, color-coded representation of the suit passed to this method. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
isFaceUp()
Gets whether the card is face up |
void |
recoverPhyStats()
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to all surrounding objects with affectPhyStats(Environmental,PhyStats) method. |
void |
turnFaceDown()
Sets the card as face down |
void |
turnFaceUp()
Sets the card as face up |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item |
---|
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider |
---|
riding, setRiding |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.DBIdentifiable |
---|
canSaveDatabaseID, databaseID, setDatabaseID |
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable |
---|
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Readable |
---|
isReadable, readableText, setReadable, setReadableText |
Field Detail |
---|
protected int oldAbility
Constructor Detail |
---|
public StdPlayingCard()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdItem
protected boolean abilityImbuesMagic()
abilityImbuesMagic
in class StdItem
public int getBitEncodedSuit()
PlayingCard
getBitEncodedSuit
in interface PlayingCard
PlayingCard.suits
public int getBitEncodedValue()
PlayingCard
getBitEncodedValue
in interface PlayingCard
PlayingCard.suits
,
The card values are 2-14, the suit bitmasks are 0, 16, 32, and 48.
Face up is bit 64.
public boolean isFaceUp()
PlayingCard
isFaceUp
in interface PlayingCard
PlayingCard.turnFaceUp()
,
Face up is bit 64.
public void turnFaceUp()
PlayingCard
turnFaceUp
in interface PlayingCard
PlayingCard.isFaceUp()
,
Face up is bit 64.
public void turnFaceDown()
PlayingCard
turnFaceDown
in interface PlayingCard
PlayingCard.isFaceUp()
,
Face up is bit 64.
public java.lang.String getStringEncodedSuit()
PlayingCard
getStringEncodedSuit
in interface PlayingCard
public java.lang.String getStringEncodedValue()
PlayingCard
getStringEncodedValue
in interface PlayingCard
public java.lang.String getCardValueLongDescription(int value)
PlayingCard
getCardValueLongDescription
in interface PlayingCard
value
- the value to return a description of
public java.lang.String getCardValueShortDescription(int value)
PlayingCard
getCardValueShortDescription
in interface PlayingCard
value
- the value to return a description of
public java.lang.String getSuitDescription(int suit)
PlayingCard
getSuitDescription
in interface PlayingCard
suit
- the suit to return a description of
public void recoverPhyStats()
Affectable
recoverPhyStats
in interface Affectable
recoverPhyStats
in class StdItem
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.addEffect(Ability)
,
Behavable.addBehavior(Behavior)
,
PhyStats
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |