25 #ifndef FREESCAPE_INSTRUCTION_H 26 #define FREESCAPE_INSTRUCTION_H 28 #include "common/array.h" 29 #include "freescape/language/token.h" 40 void setSource(int32 source);
41 void setAdditional(int32 additional);
42 void setDestination(int32 destination);
44 Token::Type getType()
const;
46 bool isConditional()
const {
47 Token::Type type = getType();
48 return type == Token::Type::BITNOTEQ || type == Token::Type::VARNOTEQ || \
49 type == Token::Type::IFGTEQ || type == Token::Type::IFLTEQ || \
50 type == Token::Type::VAREQ || _type == Token::Type::INVISQ;
53 void setBranches(FCLInstructionVector *thenBranch, FCLInstructionVector *elseBranch);
61 FCLInstructionVector *_thenInstructions;
62 FCLInstructionVector *_elseInstructions;
65 enum Token::Type _type;
70 #endif // FREESCAPE_INSTRUCTION_H
Definition: instruction.h:36