com.cafesoft.cams.oblig
Class StandardEffectMatch
java.lang.Object
|
+--com.cafesoft.cams.oblig.StandardEffectMatch
- All Implemented Interfaces:
- EffectMatch
- public final class StandardEffectMatch
- extends Object
- implements EffectMatch
Standard implementation of the EffectMatch interface.
- Since:
- 9/22/04
- See Also:
EffectMatch
|
Method Summary |
boolean |
matches(Effect effect)
Returns true if an Effect matches the status and
reason patterns. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardEffectMatch
public StandardEffectMatch(String type,
int status,
int reason)
- Create a new StandardEffectMatch object.
- Parameters:
type - the EffectMatch's type.status - the EffectMatch's status code.reason - the EffectMatch's reason code.
matches
public boolean matches(Effect effect)
- Returns true if an
Effect matches the status and
reason patterns.
- Specified by:
matches in interface EffectMatch
- Returns:
- true if a match, else false.
Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.