diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-04-18 17:40:55 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-04-18 17:40:55 +0100 |
| commit | c4fc08cc7238dfa310ed56e65a24df22c6bbb625 (patch) | |
| tree | 893cbeb6b5e135ae4e70b6754ba349bdf70021bc /gaunt01/src/trapdoor.h | |
| parent | 3411448d999ce36b5fcb14ca4829435308cbd70a (diff) | |
trapdoor splashes etc
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; }; |
