From c4fc08cc7238dfa310ed56e65a24df22c6bbb625 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 18 Apr 2012 17:40:55 +0100 Subject: trapdoor splashes etc --- gaunt01/src/trapdoor.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gaunt01/src/trapdoor.h') 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& players); + bool checkUpdate(map& 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 caught; + vector caughtTime; }; -- cgit v1.2.3