Oodle/src/CRemoveSeqEvent.h
raw| 1 | #ifndef _CREMOVESEQEVENT_ |
| 2 | #define _CREMOVESEQEVENT_ |
| 3 | |
| 4 | #include "CSequencedEvent.h" |
| 5 | |
| 6 | class CRemoveSeqEvent : public CSequencedEvent |
| 7 | { |
| 8 | public: |
| 9 | CRemoveSeqEvent(CSequencedEvent* e, CParticle &p) : CSequencedEvent(true), p(p), e(e) {} |
| 10 | CRemoveSeqEvent* getCopy() { return new CRemoveSeqEvent(*this); } |
| 11 | void doUpdate() { p.removeEvent( e ); } |
| 12 | |
| 13 | private: |
| 14 | CParticle &p; |
| 15 | CSequencedEvent *e; |
| 16 | }; |
| 17 | |
| 18 | #endif |