CardDeclarationOpcode
Constants used with Duel.AnnounceCard
as operations for filtering card names that can be declared. The operations, along with their operands, must be ordered in Reverse Polish Notation (RPN).
Constant | Value | Summary |
---|---|---|
OPCODE_ADD | 1073741824 | Adds its operands. |
OPCODE_SUB | 1073741825 | Subtracts its second operand from its first operand. |
OPCODE_MUL | 1073741826 | Multiplies its operands. |
OPCODE_DIV | 1073741827 | Divides its first operand by its second operand. |
OPCODE_AND | 1073741828 | Performs logical AND on its operands. |
OPCODE_OR | 1073741829 | Performs logical OR on its operands. |
OPCODE_NEG | 1073741830 | Flips the sign of its operand. |
OPCODE_NOT | 1073741831 | Performs logical NOT on its operand. |
OPCODE_BAND | 1073741832 | Performs bitwise AND on its operands. |
OPCODE_BOR | 1073741833 | Performs bitwise OR on its operands. |
OPCODE_BNOT | 1073741840 | Performs bitwise NOT on its operand. |
OPCODE_BXOR | 1073741841 | Performs bitwise XOR on its operands. |
OPCODE_LSHIFT | 1073741842 | Performs bitwise left shift. |
OPCODE_RSHIFT | 1073741843 | Performs bitwise right shift. |
OPCODE_ALLOW_ALIASES | 1073741844 | Allows alias names. |
OPCODE_ALLOW_TOKENS | 1073741845 | Allows token names. |
OPCODE_ISCODE | 1073742080 | Checks for cards whose passcode matches its operand. |
OPCODE_ISSETCARD | 1073742081 | Checks for cards with an archetype that matches its operand. |
OPCODE_ISTYPE | 1073742082 | Checks for cards whose card type(s) matches its operand. |
OPCODE_ISRACE | 1073742083 | Checks for cards whose race(s) matches its operand. |
OPCODE_ISATTRIBUTE | 1073742084 | Checks for cards whose attribute(s) matches its operand. |
OPCODE_GETCODE | 1073742085 | Evaluates to the passcode of the card being checked. |
OPCODE_GETSETCARD | 1073742086 | Evaluates to the archetype(s) of the card being checked. |
OPCODE_GETTYPE | 1073742087 | Evaluates to the card type(s) of the card being checked. |
OPCODE_GETRACE | 1073742088 | Evaluates to the race(s) of the card being checked. |
OPCODE_GETATTRIBUTE | 1073742089 | Evaluates to the attribute(s) of the card being checked. |