diff options
Diffstat (limited to 'gaunt01/src/trapdoor.h')
| -rw-r--r-- | gaunt01/src/trapdoor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gaunt01/src/trapdoor.h b/gaunt01/src/trapdoor.h index d307c2d..6f8b509 100644 --- a/gaunt01/src/trapdoor.h +++ b/gaunt01/src/trapdoor.h @@ -21,8 +21,10 @@ class trapdoor trapdoor(ofVec2f _boundTR=ofVec2f(0,0),ofVec2f _boundBR=ofVec2f(0,0),ofVec2f _doorSize=ofVec2f(10,10)); virtual ~trapdoor(); - bool checkUpdate(const map<int,player>& players); + bool checkUpdate(map<int,player>& players); void draw(); + void drawSplash(float angle); + void drawDebug(); void start(); void startPos(ofVec2f pos); @@ -36,7 +38,8 @@ class trapdoor float getoffset(); float getFalldist(); - + + ofImage* splashFrames; //temp public protected: private: morphmesh surround; @@ -59,10 +62,13 @@ class trapdoor ofImage texture; ofSoundPlayer* sounds; + bool opening; float triggeredTime; + vector<player*> caught; + vector<float> caughtTime; }; |
