Class StarSystem

java.lang.Object
  |
  +--StarSystem

public class StarSystem
extends java.lang.Object


Field Summary
static StarSystem[] allSystem
           
 
Constructor Summary
StarSystem(int ID, java.lang.String nam, Planet[] planets)
          StarSystem(int, String, Planet[])
 
Method Summary
static StarSystem get(int id)
           
 java.util.Vector getMissionChars(char side)
          getMissionChars() returns a vector of planets containing characters on the specified side (Rebel or Imperial)
 java.lang.String getName()
          getName() Returns the StarSystem's name
 Province getProvince()
          getProvince() Returns the star system's Province
 java.util.Vector getsiblingplanets()
          getsiblingPlanets Returns the planets in the starsystem as a vector
 int getStarId()
          getStarId() Returns the StarSystem's ID number
static StarSystem getSystem(java.lang.String name)
           
 Planet[] getsystemplanets()
          getsystemplanets() returns the list of planets in the same star system
 java.util.Vector hasRace(java.lang.String race)
          hasRace(String) Search StarSystem and returns planets containing a race
static void init()
           
 void isInProvince(Province p)
          Province calls this when it is being created, please do not call it!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allSystem

public static StarSystem[] allSystem
Constructor Detail

StarSystem

public StarSystem(int ID,
                  java.lang.String nam,
                  Planet[] planets)
StarSystem(int, String, Planet[])

Parameters:
ID - StarSystem's ID number
nam - name of StarSystem
planets - Planets in StarSystem
Method Detail

getName

public java.lang.String getName()
getName() Returns the StarSystem's name

Returns:
StarSystem's Name

getStarId

public int getStarId()
getStarId() Returns the StarSystem's ID number

Returns:
StarSystem's ID Number

getProvince

public Province getProvince()
getProvince() Returns the star system's Province

Returns:
Province

get

public static StarSystem get(int id)

getSystem

public static StarSystem getSystem(java.lang.String name)

isInProvince

public void isInProvince(Province p)
Province calls this when it is being created, please do not call it!


getsystemplanets

public Planet[] getsystemplanets()
getsystemplanets() returns the list of planets in the same star system

Returns:
List of Planets in StarSystem

getsiblingplanets

public java.util.Vector getsiblingplanets()
getsiblingPlanets Returns the planets in the starsystem as a vector

Returns:
Vector of Planets in StarSystem

hasRace

public java.util.Vector hasRace(java.lang.String race)
hasRace(String) Search StarSystem and returns planets containing a race

Parameters:
race - Race to Search for
Returns:
List (Vector) of planets with Race

getMissionChars

public java.util.Vector getMissionChars(char side)
getMissionChars() returns a vector of planets containing characters on the specified side (Rebel or Imperial)


init

public static void init()