-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bird.h
47 lines (31 loc) · 812 Bytes
/
Bird.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//Dong-Son Nguyen-Huu - 40014054
//COMP 426
//October 8, 2017
//Assignment 1
#pragma once
#include <Eigen/Dense>
class Bird {
private:
float length = 0.005;
static int birdID;
int ID;
float r;
float g;
float b;
float posX;
float posY;
Eigen::Vector2f position;
Eigen::Vector2f velocity;
bool moveLeft = true;
bool moveDown = true;
Eigen::Vector2f nextPosition;
public:
Bird(float re, float gr, float bl);
const Eigen::Vector2f &getPosition() const;
void setPosition(const Eigen::Vector2f &position);
const Eigen::Vector2f &getVelocity() const;
void setVelocity(const Eigen::Vector2f &velocity);
const Eigen::Vector2f &getNextPosition() const;
void setNextPosition(const Eigen::Vector2f &nextPosition);
void drawBird();
};