Class CharacterGroup

java.lang.Object
  |
  +--Group
        |
        +--CharacterGroup
Direct Known Subclasses:
MissionGroup

public class CharacterGroup
extends Group


Field Summary
protected  java.util.Vector starships
           
 
Fields inherited from class Group
environ, planet, side, type, units
 
Constructor Summary
CharacterGroup(char s)
           
 
Method Summary
 void addSpaceship(Spaceship s)
          adds a Spaceship to the vector
 int CharCombat(CharacterGroup att)
          General Character vs.
protected  int CharGroupStrength()
           
 java.util.Vector getStarships()
          MS team needs to know which spaceships are in a given environ returns a vector of spacships
 int MonsterCombat()
          Monster Attack chars: Group being attacked returns 0 if characters survive, 1 if characters die
 void removeSpaceship(Spaceship s)
          removes a Spaceship from the vector
 int SquadCombat(MilitaryGroup att)
          Military vs.
 
Methods inherited from class Group
add, CheckEmpty, getEnviron, getGroup, getNumDetectedChars, getNumMilUnits, getNumUnits, getPlanet, getSide, getType, move, move, move, move, move, move, moveGroupFromEnvironToOrbit, moveGroupFromEnvironToOrbit, moveGroupFromEnvironToOrbit, moveGroupFromOrbitToEnviron, moveGroupFromOrbitToEnviron, moveGroupFromOrbitToEnviron, moveGroupFromOrbitToOrbit, moveGroupFromOrbitToOrbit, moveGroupFromOrbitToOrbit, remove, setEnviron, setPlanet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

starships

protected java.util.Vector starships
Constructor Detail

CharacterGroup

public CharacterGroup(char s)
Method Detail

getStarships

public java.util.Vector getStarships()
MS team needs to know which spaceships are in a given environ returns a vector of spacships


addSpaceship

public void addSpaceship(Spaceship s)
adds a Spaceship to the vector


removeSpaceship

public void removeSpaceship(Spaceship s)
removes a Spaceship from the vector


CharCombat

public int CharCombat(CharacterGroup att)
General Character vs. Character Combat att: attacker, def: defender returns 0 if no Group is eliminated, 1 if attacking Group is eliminated, 2 if defending Group is eliminated


MonsterCombat

public int MonsterCombat()
Monster Attack chars: Group being attacked returns 0 if characters survive, 1 if characters die


SquadCombat

public int SquadCombat(MilitaryGroup att)
Military vs. Character Combat att: attacker (Military) def: defender (Character) env: environment returns 0 if neither Group is eliminated, 1 if attacking Group is eliminated, 2 if defending Group is eliminated


CharGroupStrength

protected int CharGroupStrength()