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

Quick Search    Search Deep

org.zazof.jtegServer
Class Continent  view Continent download Continent.java

java.lang.Object
  extended byorg.zazof.jtegServer.Continent

public class Continent
extends java.lang.Object


Field Summary
private  java.util.Vector $countries
           
private  java.lang.String $name
           
 
Constructor Summary
Continent(java.lang.String name)
           
 
Method Summary
 void addCountry(Country c)
           
 java.lang.String getName()
           
 Player getOwner()
          returns the players who owns all the countries of this continent, else null
 boolean hasSingleOwner()
          returns true is all countries of this continent are owned by 1 player
 
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

$countries

private java.util.Vector $countries
Constructor Detail

Continent

public Continent(java.lang.String name)
Method Detail

hasSingleOwner

public boolean hasSingleOwner()
returns true is all countries of this continent are owned by 1 player


getOwner

public Player getOwner()
returns the players who owns all the countries of this continent, else null


addCountry

public void addCountry(Country c)

getName

public java.lang.String getName()