| 1 |
#ifndef HEADER_ROPEDECOR_H |
| 2 |
#define HEADER_ROPEDECOR_H |
| 3 |
|
| 4 |
class Cube; |
| 5 |
class View; |
| 6 |
|
| 7 |
#include "Decor.h" |
| 8 |
#include "V2.h" |
| 9 |
|
| 10 |
#include "SDL.h" |
| 11 |
|
| 12 |
/** |
| 13 |
* Draw rope between two models. |
| 14 |
*/ |
| 15 |
class RopeDecor : public Decor { |
| 16 |
private: |
| 17 |
const Cube *m_model1; |
| 18 |
const Cube *m_model2; |
| 19 |
V2 m_shift1; |
| 20 |
V2 m_shift2; |
| 21 |
public: |
| 22 |
RopeDecor(const Cube *model1, const Cube *model2, |
| 23 |
const V2 &shift1, const V2 &shift2); |
| 24 |
virtual void drawOnScreen(const View *view, SDL_Surface *screen); |
| 25 |
}; |
| 26 |
|
| 27 |
#endif |