Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.zazof.jteg
Class Country  view Country download Country.java

java.lang.Object
  extended byorg.zazof.jteg.Country

public class Country
extends java.lang.Object


Field Summary
private  int $armiesX
           
private  int $armiesY
           
private  int $cardType
           
private  java.lang.String $continentName
           
private  java.awt.Image $countryImage
           
private  java.lang.String $countryName
           
private  int $countryNumber
           
private  int $countryX
           
private  int $countryY
           
private  int $nrOfArmies
           
private  Player $owner
           
private  boolean $selected
           
private static boolean DEBUG
           
 
Constructor Summary
Country(java.lang.String name, int country_number, int location_x, int location_y, java.lang.String filename, int army_x, int army_y, int cardType, java.lang.String continentName)
          Constructor of the CountryClass
 
Method Summary
 void addArmies(int armies)
          add armies
 void changeSelected()
           
 int getAbsoluteXCoord()
          Returns the x-coordinate of the absolute location of this country
 int getAbsoluteYCoord()
          Returns the y-coordinate of the absolute location of this country
 int getArmiesX()
          The relative position of the number of armies/armiecircle vs the middle of the country (xcoord)
 int getArmiesY()
          The relative position of the number of armies/armiecircle vs the middle of the country (ycoord)
 int getCardType()
          The type of the card connected to this country
 java.lang.String getContinentName()
          Returns the name of the Continent this country is in
 java.lang.String getCountryName()
          Returns the name of the Country
 int getID()
          Returns the number of the Country
 java.awt.Image getImage()
          Returns the Imageobject that represents this country
 int getNumberOfArmies()
          Returns the number of armies currently present in this country
 Player getOwner()
          Returns the owner of the Country
 boolean isSelected()
          Returns whether the country is selected
 void select()
          selects this country
 void setNumberOfArmies(int armies)
          Sets a the number of armies that are present on this country
 void setOwner(Player owner)
          Sets a specific player as the owner of the country
 void unselect()
          unselects this country
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$countryNumber

private int $countryNumber

$countryName

private java.lang.String $countryName

$continentName

private java.lang.String $continentName

$owner

private Player $owner

$nrOfArmies

private int $nrOfArmies

$countryImage

private java.awt.Image $countryImage

$countryX

private int $countryX

$countryY

private int $countryY

$armiesX

private int $armiesX

$armiesY

private int $armiesY

$cardType

private int $cardType

$selected

private boolean $selected

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

Country

public Country(java.lang.String name,
               int country_number,
               int location_x,
               int location_y,
               java.lang.String filename,
               int army_x,
               int army_y,
               int cardType,
               java.lang.String continentName)
Constructor of the CountryClass

Method Detail

getOwner

public Player getOwner()
Returns the owner of the Country


getCountryName

public java.lang.String getCountryName()
Returns the name of the Country


getContinentName

public java.lang.String getContinentName()
Returns the name of the Continent this country is in


getID

public int getID()
Returns the number of the Country


getImage

public java.awt.Image getImage()
Returns the Imageobject that represents this country


getAbsoluteXCoord

public int getAbsoluteXCoord()
Returns the x-coordinate of the absolute location of this country


getAbsoluteYCoord

public int getAbsoluteYCoord()
Returns the y-coordinate of the absolute location of this country


getNumberOfArmies

public int getNumberOfArmies()
Returns the number of armies currently present in this country


getArmiesX

public int getArmiesX()
The relative position of the number of armies/armiecircle vs the middle of the country (xcoord)


getArmiesY

public int getArmiesY()
The relative position of the number of armies/armiecircle vs the middle of the country (ycoord)


getCardType

public int getCardType()
The type of the card connected to this country


isSelected

public boolean isSelected()
Returns whether the country is selected


setOwner

public void setOwner(Player owner)
Sets a specific player as the owner of the country


addArmies

public void addArmies(int armies)
add armies


setNumberOfArmies

public void setNumberOfArmies(int armies)
Sets a the number of armies that are present on this country


changeSelected

public void changeSelected()

select

public void select()
selects this country


unselect

public void unselect()
unselects this country