| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #ifndef CHRYSALIS_DARTINSTRUCTION_H | ||||
| 2 | #define CHRYSALIS_DARTINSTRUCTION_H | ||||
| 3 | |||||
| 4 | #include "arguments/VectorArgument.h" | ||||
| 5 | #include "arguments/PatternPointArgument.h" | ||||
| 6 | #include "instructions/BasePatternInstruction.h" | ||||
| 7 | |||||
| 8 | /** @defgroup Instructions Instructions | ||||
| 9 | * @{ | ||||
| 10 | */ | ||||
| 11 | namespace Chrysalis { | ||||
| 12 | class DartInstruction: public BasePatternInstruction { | ||||
| 13 | PROVIDE_SERIALIZATION_ACCESS(DartInstruction) | ||||
| 14 | public: | ||||
| 15 | explicit DartInstruction(ProjectSpace* space, args::patterns* patterns, | ||||
| 16 | const PatternPointArgument* point, args::number&& intake, | ||||
| 17 | const args::vector* top, const args::vector* bottom); | ||||
| 18 | ~DartInstruction() override; | ||||
| 19 | |||||
| 20 | void execute() override; | ||||
| 21 | private: | ||||
| 22 | /// @uml{composition} | ||||
| 23 | const PatternPointArgument* point_; | ||||
| 24 | /// @uml{composition} | ||||
| 25 | args::number intake_; | ||||
| 26 | /// @uml{composition} | ||||
| 27 | const args::vector* top_; | ||||
| 28 | /// @uml{composition} | ||||
| 29 | const args::vector* bottom_; | ||||
| 30 | }; | ||||
| 31 | 80 | SERIALIZE_DERIVED_CONSTRUCTION(DartInstruction, BasePatternInstruction, space_, patterns_, point_, intake_, top_, bottom_); | |||
| 32 | } | ||||
| 33 | /**@}*/ | ||||
| 34 | |||||
| 35 | #endif //CHRYSALIS_DARTINSTRUCTION_H | ||||
| 36 |