| 1 |
#ifndef _CAPPLYGRAVITYEVENT_ |
| 2 |
#define _CAPPLYGRAVITYEVENT_ |
| 3 |
|
| 4 |
#include "CPlayingField.h" |
| 5 |
#include "CBlock.h" |
| 6 |
|
| 7 |
class CApplyGravityEvent : public CSequencedEvent |
| 8 |
{ |
| 9 |
public: |
| 10 |
CApplyGravityEvent(CBlock &b, CPlayingField &f) : CSequencedEvent(true), block(b), field(f), pause(0), stopped(true), falling(true) {} |
| 11 |
|
| 12 |
CApplyGravityEvent* getCopy() { return new CApplyGravityEvent(*this); } |
| 13 |
|
| 14 |
void doUpdate(); |
| 15 |
void initialize(); |
| 16 |
|
| 17 |
private: |
| 18 |
CBlock █ |
| 19 |
CPlayingField &field; |
| 20 |
CTimer pause; |
| 21 |
bool stopped, falling; |
| 22 |
}; |
| 23 |
|
| 24 |
#endif |