summaryrefslogtreecommitdiff
path: root/gaunt01/src/bird.h
diff options
context:
space:
mode:
Diffstat (limited to 'gaunt01/src/bird.h')
-rw-r--r--gaunt01/src/bird.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gaunt01/src/bird.h b/gaunt01/src/bird.h
index 026da72..3ab0da9 100644
--- a/gaunt01/src/bird.h
+++ b/gaunt01/src/bird.h
@@ -42,6 +42,7 @@
#include "morphmesh.h"
#include "normBindTexture.h"
#include "player.h"
+#include "outsidePolygon.h"
#include "ofxRay.h"
@@ -50,7 +51,7 @@ class bird
public:
bird();
virtual ~bird();
- void update(map<int,player>& players,float angle);
+ void update(map<int,player>& players,float angle,vector<ofPoint> border);
void draw();
void drawShadow();
void drawDebug();
@@ -60,6 +61,7 @@ class bird
ofRay pointer;
ofVec3f position;
+ ofVec2f centrePoint; //2d coords of centre of screen
vector<float> playang;
vector<float> playhead;
@@ -67,6 +69,9 @@ class bird
vector<float> playdist;
vector<ofVec3f> playpos;
+ bool leaving;
+ float centrehead;
+
float heading;
protected: