equal
deleted
inserted
replaced
4 */ |
4 */ |
5 |
5 |
6 #ifndef _CUBE_H |
6 #ifndef _CUBE_H |
7 #define _CUBE_H |
7 #define _CUBE_H |
8 |
8 |
9 #include <pmc.h> |
9 #include <surface.h> |
|
10 #include <vector.h> |
|
11 #include <rectangle.h> |
10 |
12 |
11 using namespace pmc; |
13 class Cube:public Drawable { |
12 |
14 private: |
13 class Cube:public Vector { |
|
14 public: |
|
15 Vector * P[8]; |
15 Vector * P[8]; |
16 int height; |
16 int height; |
17 |
17 |
18 Cube (Vector p1, Vector p2, Vector p3, Vector p4, int h); |
18 public: |
|
19 Cube (Surface *, Vector, Vector, Vector, Vector, int); |
|
20 Cube (Surface *); |
|
21 |
19 virtual ~ Cube (); |
22 virtual ~ Cube (); |
20 void show (); |
23 void show (); |
21 void move (Vector); |
24 void move (Vector); |
22 }; |
25 }; |
23 #endif |
26 #endif |