|
|||||||||
| Home >> All >> org >> zazof >> [ jteg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.zazof.jteg
Class Card

java.lang.Objectorg.zazof.jteg.Card
- public class Card
- extends java.lang.Object
| Field Summary | |
private boolean |
$active
|
private int |
$cardNumber
|
private Country |
$country
|
private int |
$currentPosition
|
private java.util.Vector |
$images
|
private boolean |
$selected
|
private int |
$typeID
|
private static boolean |
DEBUG
|
| Constructor Summary | |
Card(int cardNumber)
|
|
| Method Summary | |
void |
activate(Country country,
int type,
java.lang.String filename)
Will activate a card with given values |
void |
changeSelected()
|
void |
deActivate()
Releases a card. |
int |
getCardNumber()
Returns the number of this card |
Country |
getCountry()
Returns the Country associated with this Cardowner of the Country |
java.awt.Image |
getImage()
Returns the Imageobject that represents this country |
int |
getPosition()
Sets the current position of this card in the cardcontainer |
int |
getType()
Returns the type of this card |
boolean |
isActive()
Returns whether this card is active or not |
boolean |
isDifferentFrom(Card other)
Returns whether this card is different from another card |
boolean |
isEqualTo(Card other)
Returns whether this card is compatible with another card |
boolean |
isSelected()
Returns whether this card is selected |
void |
select()
selects this card |
void |
setPosition(int newPosition)
Sets the current position of this card in the cardcontainer |
void |
unselect()
unselects this card |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
$cardNumber
private int $cardNumber
$currentPosition
private int $currentPosition
$country
private Country $country
$images
private java.util.Vector $images
$typeID
private int $typeID
$selected
private boolean $selected
$active
private boolean $active
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
| Constructor Detail |
Card
public Card(int cardNumber)
| Method Detail |
getCountry
public Country getCountry()
- Returns the Country associated with this Cardowner of the Country
getType
public int getType()
- Returns the type of this card
getCardNumber
public int getCardNumber()
- Returns the number of this card
getImage
public java.awt.Image getImage()
- Returns the Imageobject that represents this country
isSelected
public boolean isSelected()
- Returns whether this card is selected
isActive
public boolean isActive()
- Returns whether this card is active or not
isEqualTo
public boolean isEqualTo(Card other)
- Returns whether this card is compatible with another card
isDifferentFrom
public boolean isDifferentFrom(Card other)
- Returns whether this card is different from another card
getPosition
public int getPosition()
- Sets the current position of this card in the cardcontainer
activate
public void activate(Country country, int type, java.lang.String filename)
- Will activate a card with given values
deActivate
public void deActivate()
- Releases a card. After this method, the card is free to be reused.
changeSelected
public void changeSelected()
select
public void select()
- selects this card
unselect
public void unselect()
- unselects this card
setPosition
public void setPosition(int newPosition)
- Sets the current position of this card in the cardcontainer
|
|||||||||
| Home >> All >> org >> zazof >> [ jteg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.zazof.jteg.Card