dip.order.result
Class BouncedResult

java.lang.Object
  extended bydip.order.result.Result
      extended bydip.order.result.OrderResult
          extended bydip.order.result.BouncedResult
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class BouncedResult
extends OrderResult

Similar to an OrderResult, but allows the optional specification of:

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class dip.order.result.OrderResult
OrderResult.ResultType
 
Field Summary
 
Fields inherited from class dip.order.result.OrderResult
order, resultType
 
Fields inherited from class dip.order.result.Result
message, power
 
Constructor Summary
BouncedResult(Orderable order)
           
 
Method Summary
 int getAttackStrength()
          Returns the attack strength, or -1 if it has not been set.
 Province getBouncer()
          Returns the location of the unit with whom we bounced, or null if it has not been set.
 int getDefenseStrength()
          Returns the defense strength, or -1 if it has not been set.
 java.lang.String getMessage(OrderFormatOptions ofo)
          Creates an appropriate internationalized text message given the set and unset parameters.
 void setAttackStrength(int value)
          Set the attack strength.
 void setBouncer(Province value)
          Set the unit which which we had bounced.
 void setDefenseStrength(int value)
          Set the defense strength.
 java.lang.String toString()
          Primarily for debugging.
 
Methods inherited from class dip.order.result.OrderResult
compareTo, getOrder, getResultType
 
Methods inherited from class dip.order.result.Result
getMessage, getPower
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BouncedResult

public BouncedResult(Orderable order)
Method Detail

getAttackStrength

public int getAttackStrength()
Returns the attack strength, or -1 if it has not been set.


getDefenseStrength

public int getDefenseStrength()
Returns the defense strength, or -1 if it has not been set.


getBouncer

public Province getBouncer()
Returns the location of the unit with whom we bounced, or null if it has not been set.


setAttackStrength

public void setAttackStrength(int value)
Set the attack strength. A value of -1 indicates that this has not been set.


setDefenseStrength

public void setDefenseStrength(int value)
Set the defense strength. A value of -1 indicates that this has not been set.


setBouncer

public void setBouncer(Province value)
Set the unit which which we had bounced. A value of null indicates that this has not been set.


getMessage

public java.lang.String getMessage(OrderFormatOptions ofo)
Creates an appropriate internationalized text message given the set and unset parameters.

Overrides:
getMessage in class Result

toString

public java.lang.String toString()
Primarily for debugging.

Overrides:
toString in class OrderResult


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.