forked from ManalHasan/OOP-Project-Manal-Moiz-Naaseh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.hpp
More file actions
21 lines (19 loc) · 681 Bytes
/
Player.hpp
File metadata and controls
21 lines (19 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "Object.hpp"
//Abstarct class and Child class of Object, Parent of all Bird classes
class Player:public Object{
private:
//y axis coordinate
double gravity=250;
int time=0;
public:
void Update();
void Gravity();
double getYPos ();//const
virtual void Render(SDL_Renderer* ren)=0;
virtual void createTexture1(const char* address,SDL_Renderer* ren)=0;
virtual void createTexture2(const char* address,SDL_Renderer* ren)=0;
virtual void createTexture3(const char* address,SDL_Renderer* ren)=0;
void Reset();
virtual ~Player();
};