| 1 |
#ifndef _CLOADLEVELEVENT_ |
| 2 |
#define _CLOADLEVELEVENT_ |
| 3 |
|
| 4 |
#include "CSequencedEvent.h" |
| 5 |
|
| 6 |
class CLoadLvlEvent : public CSequencedEvent |
| 7 |
{ |
| 8 |
public: |
| 9 |
CLoadLvlEvent(CPlayingField &f, int stage, int index) : CSequencedEvent(true), f(f), stage(stage), index(index) {} |
| 10 |
CLoadLvlEvent* getCopy() { return new CLoadLvlEvent(*this); } |
| 11 |
void doUpdate() { if (!isDone()) { cout << "the eagle has landed!!!!!!!!" << endl; f.load(stage, index); setDone();} } |
| 12 |
|
| 13 |
private: |
| 14 |
CPlayingField &f; |
| 15 |
int stage, index; |
| 16 |
}; |
| 17 |
|
| 18 |
#endif |