| 1 |
#ifndef HEADER_LANDSLIP_H |
| 2 |
#define HEADER_LANDSLIP_H |
| 3 |
|
| 4 |
#include "NoCopy.h" |
| 5 |
#include "Cube.h" |
| 6 |
#include "ModelList.h" |
| 7 |
|
| 8 |
/** |
| 9 |
* Landslip for every round. |
| 10 |
*/ |
| 11 |
class Landslip : public NoCopy { |
| 12 |
private: |
| 13 |
ModelList m_models; |
| 14 |
Cube::eWeight m_impact; |
| 15 |
bool *m_stoned; |
| 16 |
private: |
| 17 |
bool isOnPad(const Cube *model) const; |
| 18 |
bool isFixed(const Cube *model) const; |
| 19 |
bool isStoned(const Cube *model) const; |
| 20 |
void stone(const Cube *model); |
| 21 |
public: |
| 22 |
Landslip(const ModelList &models); |
| 23 |
~Landslip(); |
| 24 |
|
| 25 |
bool computeFall(); |
| 26 |
Cube::eWeight getImpact() { return m_impact; } |
| 27 |
|
| 28 |
bool stoneModel(const Cube *model); |
| 29 |
bool fallModel(Cube *model); |
| 30 |
}; |
| 31 |
|
| 32 |
#endif |