Uses of Class
net.sf.magicproject.test.Test

Packages that use Test
net.sf.magicproject.action Provides actions. 
net.sf.magicproject.action.context Provides context classes of an action. 
net.sf.magicproject.clickable.ability Abilities. 
net.sf.magicproject.clickable.mana Mana represents colored (so visible) entities can be clickable by players. 
net.sf.magicproject.clickable.targetable.card All card components. 
net.sf.magicproject.deckbuilder any classes manipulating decks and also components used by the deckbuilder form. 
net.sf.magicproject.event Available events. 
net.sf.magicproject.event.context Context attached to a triggered event. 
net.sf.magicproject.event.phase The phase events : before, beginning, ending events. 
net.sf.magicproject.expression Provides expressions. 
net.sf.magicproject.modifier Provides modifiers. 
net.sf.magicproject.stack All classes manipulating stack and controlling the abilities/actions flow. 
net.sf.magicproject.test Provides all tests. 
net.sf.magicproject.ui UI classes. 
net.sf.magicproject.zone Contains all zones. 
 

Uses of Test in net.sf.magicproject.action
 

Methods in net.sf.magicproject.action that return Test
static Test ActionFactory.getConstraints(MAction[] cost, Test constraintTest)
          Return the constraints to make usable the specified actions list.
 Test ModifyTargetableRegister.parseTest(Test test)
           
 Test MAction.parseTest(Test test)
          Return the given test where values depending on values of this action have been replaced.
 

Methods in net.sf.magicproject.action with parameters of type Test
static int ModifyRegister.countAllCardsOf(Test test, Ability ability, int restrictionZone)
          Checks all cards corresponding to this constraints
static Test ActionFactory.getConstraints(MAction[] cost, Test constraintTest)
          Return the constraints to make usable the specified actions list.
 Test ModifyTargetableRegister.parseTest(Test test)
           
 Test MAction.parseTest(Test test)
          Return the given test where values depending on values of this action have been replaced.
 

Uses of Test in net.sf.magicproject.action.context
 

Fields in net.sf.magicproject.action.context with type parameters of type Test
 java.util.List<Test> TargetList.testList
          The restriction test used to add the targets.
 

Methods in net.sf.magicproject.action.context with parameters of type Test
 void TargetList.add(Targetable target, Test test)
          Add yhe specified target to the list of this context.
 void ManaCost.addRestriction(int color, Test test, int amount)
          Add a restriction
 

Method parameters in net.sf.magicproject.action.context with type arguments of type Test
 void TargetList.addAll(java.util.List<Targetable> targetList, java.util.List<Test> testList)
          Add the specified targets to the list of this context.
 

Uses of Test in net.sf.magicproject.clickable.ability
 

Fields in net.sf.magicproject.clickable.ability declared as Test
 Test ModifierRemover.refreshTest
          The refreshing test
 

Constructors in net.sf.magicproject.clickable.ability with parameters of type Test
DetachmentAbility(MEventListener event, MCard from, MCard to, Test attachmentTest)
          Creates a new instance of DetachmentAbility
ModifierRemover(TriggeredEvent event, Unregisterable modifier, Test refreshTest)
          Creates a new instance of RemoveModifier
 

Uses of Test in net.sf.magicproject.clickable.mana
 

Methods in net.sf.magicproject.clickable.mana with parameters of type Test
 int ManaPool.addMana(int idColor, int idNumber, Test restriction)
          Add a number of mana of one color
 int Mana.addMana(int idNumber, Test restriction)
          Add a number of mana of this color
 

Uses of Test in net.sf.magicproject.clickable.targetable.card
 

Methods in net.sf.magicproject.clickable.targetable.card that return Test
 Test Attachment.getValidAttachment()
          Returns the test maintening the attachment with another component.
 Test Attachment.getValidTarget()
          Returns the initial test making valid the attachment with another component.
 

Methods in net.sf.magicproject.clickable.targetable.card with parameters of type Test
 void TriggeredCard.checkAllCardsOf(Test test, java.util.List<Targetable> list, Ability ability)
           
 void MCard.checkAllCardsOf(Test test, java.util.List<Targetable> list, Ability ability)
           
abstract  void AbstractCard.checkAllCardsOf(Test test, java.util.List<Targetable> list, Ability ability)
          Checks all cards corresponding to this constraints
 int TriggeredCard.countAllCardsOf(Test test, Ability ability, boolean canBePreempted)
           
 int MCard.countAllCardsOf(Test test, Ability ability, boolean canBePreempted)
           
abstract  int AbstractCard.countAllCardsOf(Test test, Ability ability, boolean canBePreempted)
          Checks all cards corresponding to the specified constraints
 int MCard.getNbObjects(java.lang.String objectName, Test objectTest)
          Return occurences number of the given object with the given name attached to this card.
 

Uses of Test in net.sf.magicproject.deckbuilder
 

Methods in net.sf.magicproject.deckbuilder that return Test
 Test DeckConstraint.getConstraint()
          Return the constraint.
 

Constructors in net.sf.magicproject.deckbuilder with parameters of type Test
DeckConstraint(java.lang.String name, Test constraint)
          Create a new instance of this class.
 

Uses of Test in net.sf.magicproject.event
 

Fields in net.sf.magicproject.event declared as Test
 Test MEventListener.test
          additional code to check.
 

Methods in net.sf.magicproject.event with parameters of type Test
static void GivenMana.dispatchEvent(MCard source, Player player, int color, int amount, Test restriction)
          Dispatch this event to all active event listeners able to understand this event.
static boolean GivenMana.tryAction(MCard source, Player player, int color, int amount, Test restriction)
          Dispatch this event to replacement abilites only.
 

Constructors in net.sf.magicproject.event with parameters of type Test
ArrangedZone(int idZone, Test test, MCard card, int arrangedZone)
          Creates a new instance of CanICast specifying all attributes of this class.
BecomeTapped(int idZone, Test test, MCard card)
          Creates a new instance of MEventBecomeTapped specifying all attributes of this class.
BecomeUnTapped(int idZone, Test test, MCard card)
          Creates a new instance of MEventBecomeUnTapped specifying all attributes of this class.
FacedDown(int idZone, Test test, MCard card)
          Creates a new instance of FacedUp specifying all attributes of this class.
FacedUp(int idZone, Test test, MCard card)
          Creates a new instance of FacedUp specifying all attributes of this class.
ModifiedController(int idZone, Test test, MCard card)
          Creates a new instance of MEventModifiedController
ModifiedIdCard(int idZone, Test test, MCard card, Expression idCard)
          Creates a new instance of MEventModifiedIdCard
ModifiedIdColor(int idZone, Test test, MCard card, Expression idColor)
          Creates a new instance of MEventModifiedIdColor
ModifiedOwner(int idZone, Test test, MCard card)
          Creates a new instance of MEventModifiedOwner
ModifiedProperty(int idZone, Test test, MCard card, Expression propertyExpr)
          Creates a new instance of MEventModifiedProperty
ModifiedPropertyIntersection(int idZone, Test test, MCard card, Expression propertyMask)
          Creates a new instance of MEventModifiedProperty
ModifiedRegister(int idZone, Test sourceTest, Test testModified, MCard card, Operation op, Register register, Expression index)
          Creates a new instance of MEventModifiedRegister specifying all attributes of this class.
ModifiedRegisterRange(int idZone, Test sourceTest, Test testModified, MCard card, Operation op, Register register, Expression inf, Expression sup)
          Creates a new instance of MEventModifiedRegisterRange specifying all attributes of this class.
MovedCard(int idPlace, Test testSource, Test testDestination, MCard card)
          Creates a new instance of CanICast specifying all attributes of this class.
 

Uses of Test in net.sf.magicproject.event.context
 

Fields in net.sf.magicproject.event.context declared as Test
 Test MContextCardCardIntIntTest.test
          The integer that was saved.
 

Methods in net.sf.magicproject.event.context that return Test
 Test MContextCardCardIntIntTest.getTest()
          Returns The test that was saved.
 

Constructors in net.sf.magicproject.event.context with parameters of type Test
MContextCardCardIntIntTest(Targetable dest, MCard source, int value, int value2, Test test)
          Creates a new instance of MContextCardCardIntIntTest
MContextCardCardIntIntTest(Targetable dest, MCard source, int value, int value2, Test test, int maxTimeStamp1, int maxTimeStamp2)
          Creates a new instance of MContextCardCardIntIntTest
 

Uses of Test in net.sf.magicproject.event.phase
 

Constructors in net.sf.magicproject.event.phase with parameters of type Test
BeginningPhase(int idZone, Test test, MCard card, Expression idPhase, PhaseFilter phaseFilter)
          Creates a new instance of MEventBeginningPhase specifying all attributes of this class.
EndOfPhase(int idZone, Test test, MCard card, Expression idPhase, PhaseFilter phaseFilter)
          Creates a new instance of MEventEndOfPhase specifying all attributes of this class.
 

Uses of Test in net.sf.magicproject.expression
 

Fields in net.sf.magicproject.expression declared as Test
static Test DeckCounter.lastRanTest
          The last test running for this class.
 

Methods in net.sf.magicproject.expression with parameters of type Test
 void UnaryExpression.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void RegisterAccess.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void Position.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void LowestAmong.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void IfThenElse.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void HighestAmong.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void Expression.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
          Adds to the specified list, the events modifying the result of this test.
 void Counter.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void BinaryExpression.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 

Uses of Test in net.sf.magicproject.modifier
 

Methods in net.sf.magicproject.modifier with parameters of type Test
 int ObjectModifierModel.getNbObject(MCard card, Test objectTest)
          Return occurences number of the given object with the given name.
 int ObjectAbilityModifierModel.getNbObject(MCard card, Test objectTest)
           
static int ObjectFactory.getNbObject(java.lang.String objectName, MCard onCard, Test objectTest)
          Return occurences number of the given object with the given name.
 int ObjectRegisterModifier.getNbObjects(java.lang.String objectName, Test objectTest)
           
 int ObjectPropertyModifier.getNbObjects(java.lang.String objectName, Test objectTest)
           
 int ObjectModifier.getNbObjects(java.lang.String objectName, Test objectTest)
          Return occurences number of the given object with the given name.
 int ObjectIdCardModifier.getNbObjects(java.lang.String objectName, Test objectTest)
           
 int ObjectColorModifier.getNbObjects(java.lang.String objectName, Test objectTest)
           
 int ObjectAbilityModifier.getNbObjects(java.lang.String objectName, Test objectTest)
           
 int Modifier.getNbObjects(java.lang.String objectName, Test objectTest)
           
 void ObjectModifierModel.removeObject(MCard fromCard, Test objectTest)
          Remove one instance of this object from the given card.
 void ObjectAbilityModifierModel.removeObject(MCard fromCard, Test objectTest)
           
 void ModifierModel.removeObject(MCard fromCard, Test objectTest)
          Remove one instance of this object from the given card.
 Modifier ObjectRegisterModifier.removeObject(java.lang.String objectName, Test objectTest)
           
 Modifier ObjectPropertyModifier.removeObject(java.lang.String objectName, Test objectTest)
           
 Modifier ObjectModifier.removeObject(java.lang.String objectName, Test objectTest)
          remove from the manager a occurence of object with the specified name
 Modifier ObjectIdCardModifier.removeObject(java.lang.String objectName, Test objectTest)
           
 Modifier ObjectColorModifier.removeObject(java.lang.String objectName, Test objectTest)
           
 Modifier ObjectAbilityModifier.removeObject(java.lang.String objectName, Test objectTest)
           
 Modifier Modifier.removeObject(java.lang.String objectName, Test objectTest)
           
static void ObjectFactory.removeObjectModifier(java.lang.String objectName, MCard fromCard, Test objectTest)
          Remove if can, one instance of given object with the specified name.
 

Uses of Test in net.sf.magicproject.stack
 

Fields in net.sf.magicproject.stack declared as Test
 Test AdditionalCost.constraint
          The constraint to apply this additional cost
 

Methods in net.sf.magicproject.stack with parameters of type Test
 void TargetedList.addTarget(int eventOption, Targetable targeted, Test test, boolean raiseEvent)
          Add a player/card to the targeted list
If the current target options indicates that an event has to be generated when a target is choosen, the event Targeted is dispatched.
 boolean TargetHelper.checkTarget(Ability ability, MCard source, Test test, int type, int choiceMode, ContextEventListener context, int restrictionZone, int hopCounter, boolean canBePreempted)
          Return true when there is the required amount of valid targets.
 

Uses of Test in net.sf.magicproject.test
 

Subclasses of Test in net.sf.magicproject.test
 class AbilityIs
          Test if the ability owning this test is equal to the requested name.
 class AbilitySource
          Test if the ability generating the current event has the specified name.
 class ActionSource
          Test if the action generating the current event has the specified name.
 class And
           
 class BinaryTest
           
 class ContextTest
           
 class DeckCounter
          Count cards in a player's deck until a threshold.
 class Different
           
 class Equal
           
 class False
           
 class Has
           
 class HasColor
          Test the color of a given component.
 class HasIdCard
          Test the type of a given component.
 class HasPropertyIntersectionColor
           
 class HasPropertyIntersectionIdCard
           
 class HasPropertyIntersectionProperty
           
 class Inf
           
 class InfEqual
           
 class InZone
           
 class IsAbility
           
 class IsAborting
           
 class IsCopy
          Is the tested card is a copy.
 class IsFaceUp
           
 class IsPlayer
           
 class IsSpell
           
 class IsTested
           
 class Not
          Not.java Created on 25 feb. 2004
 class Or
           
 class PreviousZone
          Test the previous place of component.
 class ReplaceTested
          Replace the tested component by another inside the nested test scope.
 class Sup
           
 class SupEqual
           
 class TestBoolean
          TestBoolean.java Created on 25 feb. 2004
 class TestCard
           
 class TestExpr
          This is a class representing a comparaison of two integer values.
 class TestObject
          TestObject.java Created on 25 feb. 2004
 class True
           
 class ValidAttachment
           
 class ValidTargetAttachment
           
 class Xor
           
 

Fields in net.sf.magicproject.test declared as Test
static Test IsTested.TESTED_IS_ATTACHED_TO
          Default instance representing the test against ATTACHED_TO and TESTED.
 

Methods in net.sf.magicproject.test that return Test
static Test And.append(Test... tests)
          Return a new test equals to "leftTest && rightTest"
static Test Or.append(Test leftTest, Test rightTest)
          Return a new test equals to "leftTest || rightTest"
 Test Xor.getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
           
 Test Or.getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
          Return this test where values depending on values of this action have been replaced.
abstract  Test BinaryTest.getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
          Return this test where values depending on values of this action have been replaced.
 Test And.getConstraintTest(java.util.HashMap<java.lang.String,Expression> values)
           
 Test Test.getConstraintTest(java.util.Map<java.lang.String,Expression> values)
          Return this test where values depending on values of this action have been replaced.
 Test SupEqual.getConstraintTest(java.util.Map<java.lang.String,Expression> values)
           
 Test Sup.getConstraintTest(java.util.Map<java.lang.String,Expression> values)
           
 Test InfEqual.getConstraintTest(java.util.Map<java.lang.String,Expression> values)
           
 Test Inf.getConstraintTest(java.util.Map<java.lang.String,Expression> values)
           
 Test Equal.getConstraintTest(java.util.Map<java.lang.String,Expression> values)
           
 Test Different.getConstraintTest(java.util.Map<java.lang.String,Expression> values)
           
static Test True.getInstance()
          Return the unique instance of this class.
static Test False.getInstance()
          Returns the unique instance of this class.
 Test ContextTest.getTest()
          Return the test of this context.
static Test TestFactory.readNextTest(java.io.InputStream inputFile)
          Return the next Test read from the current offset.
 

Methods in net.sf.magicproject.test with parameters of type Test
static Test And.append(Test... tests)
          Return a new test equals to "leftTest && rightTest"
static Test Or.append(Test leftTest, Test rightTest)
          Return a new test equals to "leftTest || rightTest"
 void TestExpr.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void Test.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
          Add to the specified list, the events modifying the result of this test.
 void ReplaceTested.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void PreviousZone.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void Not.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void IsFaceUp.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void InZone.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void HasIdCard.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void HasColor.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void Has.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 void BinaryTest.extractTriggeredEvents(java.util.List<MEventListener> res, MCard source, Test globalTest)
           
 

Constructors in net.sf.magicproject.test with parameters of type Test
Not(Test test)
          Create a new instance of Not given the other test.
Or(Test leftTest, Test rightTest)
          Creates a new instance of Or specifying all attributes of this class.
ReplaceTested(TestOn replace, Test nestedTest)
          Create a new instance of this class.
 

Uses of Test in net.sf.magicproject.ui
 

Fields in net.sf.magicproject.ui declared as Test
 Test TooltipFilter.test
          The filtering test of this tooltip.
 

Uses of Test in net.sf.magicproject.zone
 

Methods in net.sf.magicproject.zone that return Test
 Test ZoneSector.getTest()
          The sector test.
 Test SectorConfiguration.getTest()
          The sector test.
 

Methods in net.sf.magicproject.zone with parameters of type Test
 void ZoneManager.checkAllCardsOf(Test test, java.util.List<Targetable> list, Ability ability)
          Checks all cards corresponding to this constraints
 void MZone.checkAllCardsOf(Test test, java.util.List<Targetable> list, Ability ability)
          Checks all cards corresponding to this constraints
 int ZoneManager.countAllCardsOf(Test test, Ability ability)
          Checks all cards corresponding to the specified constraints
 int MZone.countAllCardsOf(Test test, Ability ability)
          Checks all cards corresponding to the specified constraints including attached cards.
 int ZoneManager.countAllCardsOf(Test test, Ability ability, int limit, boolean canBePreempted)
          Checks all cards corresponding to the specified constraints.
 int MZone.countAllCardsOf(Test test, Ability ability, int limit, boolean canBePreempted)
          Checks all cards corresponding to the specified constraints including attached cards.
 



Copyright © 2003-2007 Magic-Project. All Rights Reserved.