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

java.lang.Objectorg.zazof.jtegServer.Country
- public class Country
- extends java.lang.Object
| Field Summary | |
private int |
$armies
|
private int |
$countryID
|
private java.lang.String |
$name
|
private java.util.Hashtable |
$neighbours
|
private Player |
$owner
|
| Constructor Summary | |
Country(java.lang.String name,
int countryID)
|
|
| Method Summary | |
void |
addArmies(int nb)
|
void |
addNeighbour(Country c)
|
int |
getArmies()
|
int |
getCountryID()
|
java.lang.String |
getName()
|
Player |
getOwner()
|
boolean |
isNeighbour(Country c)
|
void |
removeArmies(int nb)
|
void |
setArmies(int armies)
|
void |
setOwner(Player owner)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
$name
private java.lang.String $name
$countryID
private int $countryID
$owner
private Player $owner
$armies
private int $armies
$neighbours
private java.util.Hashtable $neighbours
| Constructor Detail |
Country
public Country(java.lang.String name, int countryID)
| Method Detail |
setOwner
public void setOwner(Player owner)
getOwner
public Player getOwner()
setArmies
public void setArmies(int armies)
getArmies
public int getArmies()
addArmies
public void addArmies(int nb)
removeArmies
public void removeArmies(int nb)
getCountryID
public int getCountryID()
getName
public java.lang.String getName()
isNeighbour
public boolean isNeighbour(Country c)
addNeighbour
public void addNeighbour(Country c)
|
|||||||||
| Home >> All >> org >> zazof >> [ jtegServer overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.zazof.jtegServer.Country