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/player.h | |
| parent | 3411448d999ce36b5fcb14ca4829435308cbd70a (diff) | |
trapdoor splashes etc
Diffstat (limited to 'gaunt01/src/player.h')
| -rw-r--r-- | gaunt01/src/player.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/gaunt01/src/player.h b/gaunt01/src/player.h index e89c5b8..9167237 100644 --- a/gaunt01/src/player.h +++ b/gaunt01/src/player.h @@ -9,16 +9,28 @@ class player : public ofTessellator public:
player();
virtual ~player();
- void setPosition(ofVec3f _pos);
- ofVec3f getPosition();
+ void setScreenPosition(ofVec2f _pos);
+ void setWorldPosition(ofVec3f _pos);
+ ofVec3f getWorldPosition();
+ ofVec2f getScreenPosition();
+ ofVec3f getCaughtPos();
void update(ofxCvBlob blob);
void draw();
+ void caught();
+ bool isCaught;
+ void carried(ofVec3f _posOffset);
+ void setCatchTransform(ofVec3f _catchPos,ofVec3f _catchScale);
protected:
private:
ofMesh billboard;
ofPolyline outline;
- ofVec3f position;
-
+ ofVec3f worldPosition;
+ ofVec2f screenPosition;
+ ofVec2f caughtPos;
+ ofVec3f catchPos;
+ ofVec3f catchScale;
+ ofVec2f posOffset;
+
};
#endif // PLAYER_H
|
