diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-04-20 03:36:39 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-04-20 03:36:39 +0100 |
| commit | de766399e2442fbc438123c1c8763e0ae90e6158 (patch) | |
| tree | 1456a1882ead58c9ac99a74c99bde3cd11de7813 /gaunt01/src/trapdoor.h | |
| parent | eaaa8f65e00d6c094206b55c06425715d80aa014 (diff) | |
numerous problems
Diffstat (limited to 'gaunt01/src/trapdoor.h')
| -rw-r--r-- | gaunt01/src/trapdoor.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/gaunt01/src/trapdoor.h b/gaunt01/src/trapdoor.h index 6f8b509..7259d09 100644 --- a/gaunt01/src/trapdoor.h +++ b/gaunt01/src/trapdoor.h @@ -18,15 +18,13 @@ creaking sound player class trapdoor { public: - trapdoor(ofVec2f _boundTR=ofVec2f(0,0),ofVec2f _boundBR=ofVec2f(0,0),ofVec2f _doorSize=ofVec2f(10,10)); + trapdoor(ofVec2f pos=ofVec2f(0,0),float _doorSize=10); virtual ~trapdoor(); bool checkUpdate(map<int,player>& players); void draw(); void drawSplash(float angle); void drawDebug(); - void start(); - void startPos(ofVec2f pos); vector<ofVec2f> getCorners(); ofVec2f bounds2UV(ofVec2f pt); @@ -36,22 +34,17 @@ class trapdoor ofRectangle getInnerRect(); void trigger(); float getoffset(); - float getFalldist(); ofImage* splashFrames; //temp public + bool active; protected: private: morphmesh surround; morphmesh lid; ofVec2f position; - ofVec2f boundTR; - ofVec2f boundBR; - ofVec2f size; - - float startTime; - float triggerTime; //time threshold + float size; ofRectangle boundingRect; ofVec2f doorSize; @@ -61,14 +54,10 @@ class trapdoor ofImage texture; - ofSoundPlayer* sounds; - - - bool opening; - float triggeredTime; vector<player*> caught; vector<float> caughtTime; + }; |
