net.aerith.misao.util
Class StarPair

java.lang.Object
  |
  +--net.aerith.misao.util.Pair
        |
        +--net.aerith.misao.util.StarPair

public class StarPair
extends Pair

The StarPair represents a pair of two Stars.


Field Summary
protected  boolean out_of_area_flag
          True if the pair contains only a star of one side and it is out of area on the other map.
 
Fields inherited from class net.aerith.misao.util.Pair
first_position, second_position
 
Constructor Summary
StarPair(Star star1, Star star2)
          Constructs a StarPair.
 
Method Summary
 Star getFirstStar()
          Gets the first star.
 Star getSecondStar()
          Gets the second star.
 boolean isOutOfArea()
          True if this pair contains only a star of one side and it is out of area on the other map.
 void setOutOfArea()
          Sets the flag to represent this pair contains only a star of one side and it is out of area on the other map.
 
Methods inherited from class net.aerith.misao.util.Pair
getFirstPosition, getSecondPosition
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

out_of_area_flag

protected boolean out_of_area_flag
True if the pair contains only a star of one side and it is out of area on the other map.
Constructor Detail

StarPair

public StarPair(Star star1,
                Star star2)
Constructs a StarPair.
Parameters:
star1 - the first star of the pair.
star2 - the second star of the pair.
Method Detail

getFirstStar

public Star getFirstStar()
Gets the first star.
Returns:
the first star.

getSecondStar

public Star getSecondStar()
Gets the second star.
Returns:
the second star.

isOutOfArea

public boolean isOutOfArea()
True if this pair contains only a star of one side and it is out of area on the other map.

setOutOfArea

public void setOutOfArea()
Sets the flag to represent this pair contains only a star of one side and it is out of area on the other map.