Package net.sf.magicproject.expression

Provides expressions.

See:
          Description

Class Summary
AbstractValue  
BaseRegisterIntValue Return the register value of a component without considering the modifiers.
BinaryExpression  
BitCount Returns the number of one-bits in the two's complement binary representation of the specified int value.
CardColors Expression returning the colors of a card.
CardTypes Expression returning the types of a card.
Counter  
DeckCounter Count cards in a player's deck.
Expression This class represents an expression.
ExpressionFactory  
HighestAmong  
IfThenElse  
IntValue  
ListExpression  
LowestAmong  
ManaPaid Access to the manacost of an ability in the stack.
ObjectValue This class allows to statically declare an object value, with the class name given as the first string parameter of the input stream and the string argument to pass to the constructor of the given class as the second string parameter of the input stream.
Position  
ReferenceValue This expression represent a referencable value.
RegisterAccess Return the register value of a component considering the modifiers.
SavedListExpression  
StringMethod  
TestOn  
ToCode To get the code id corresponding to an index.
ToIndex To get the index corresponding to a code id.
UnaryExpression  
 

Package net.sf.magicproject.expression Description

Provides expressions. An expression is an integer value corresponding to the result of an evaluation at the runtime. To each evaluation, is given the ability owning this expression and the associated context.
Each kind of expression is linked to one or several events.
Exemple :
an instance of Counter expression is evaluating the amount of Creatures you control in play.
The associated events are


These events are important for modifier to update them as needed when the modified object depends on an expression value.



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