megamek.common
Class SpecialHexDisplay

java.lang.Object
  extended by megamek.common.SpecialHexDisplay
All Implemented Interfaces:
java.io.Serializable

public class SpecialHexDisplay
extends java.lang.Object
implements java.io.Serializable

Author:
dirk
See Also:
Serialized Form

Nested Class Summary
static class SpecialHexDisplay.Type
           
 
Field Summary
static int NO_ROUND
           
 
Constructor Summary
SpecialHexDisplay(SpecialHexDisplay.Type type)
           
SpecialHexDisplay(SpecialHexDisplay.Type type, int round, java.lang.String info)
           
SpecialHexDisplay(SpecialHexDisplay.Type type, int round, java.lang.String owner, java.lang.String info)
           
SpecialHexDisplay(SpecialHexDisplay.Type type, int round, java.lang.String owner, java.lang.String info, boolean obscured)
           
SpecialHexDisplay(SpecialHexDisplay.Type type, java.lang.String info)
           
 
Method Summary
 boolean drawNow(IGame.Phase phase, int curRound)
           
 boolean futureRound(int testRound)
          Does this SpecialHexDisplayObjet concern a round in the future?
 java.lang.String getInfo()
           
 java.lang.String getOwner()
           
 int getRound()
           
 SpecialHexDisplay.Type getType()
           
 boolean isObscured()
           
 boolean isOwner(java.lang.String toPlayer)
           
 boolean pastRound(int testRound)
          Does this SpecialHexDisplayObjet concern a round in the past?
 void setInfo(java.lang.String info)
           
 void setObscured(boolean obscured)
           
 void setOwner(java.lang.String owner)
           
 void setRound(int round)
           
 void setType(SpecialHexDisplay.Type type)
           
 boolean thisRound(int testRound)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ROUND

public static int NO_ROUND
Constructor Detail

SpecialHexDisplay

public SpecialHexDisplay(SpecialHexDisplay.Type type)

SpecialHexDisplay

public SpecialHexDisplay(SpecialHexDisplay.Type type,
                         java.lang.String info)

SpecialHexDisplay

public SpecialHexDisplay(SpecialHexDisplay.Type type,
                         int round,
                         java.lang.String info)

SpecialHexDisplay

public SpecialHexDisplay(SpecialHexDisplay.Type type,
                         int round,
                         java.lang.String owner,
                         java.lang.String info)

SpecialHexDisplay

public SpecialHexDisplay(SpecialHexDisplay.Type type,
                         int round,
                         java.lang.String owner,
                         java.lang.String info,
                         boolean obscured)
Method Detail

thisRound

public boolean thisRound(int testRound)

futureRound

public boolean futureRound(int testRound)
Does this SpecialHexDisplayObjet concern a round in the future?


pastRound

public boolean pastRound(int testRound)
Does this SpecialHexDisplayObjet concern a round in the past?


getInfo

public java.lang.String getInfo()

setInfo

public void setInfo(java.lang.String info)

getRound

public int getRound()

setRound

public void setRound(int round)

getType

public SpecialHexDisplay.Type getType()

setType

public void setType(SpecialHexDisplay.Type type)

getOwner

public java.lang.String getOwner()

setOwner

public void setOwner(java.lang.String owner)

isObscured

public boolean isObscured()

setObscured

public void setObscured(boolean obscured)

drawNow

public boolean drawNow(IGame.Phase phase,
                       int curRound)
Parameters:
phase -
curRound -
Returns:

isOwner

public boolean isOwner(java.lang.String toPlayer)
Parameters:
toPlayer -
Returns: