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 Star
s.
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. |
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 java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
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.
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.
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.