-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsaucer_game_object.h
More file actions
32 lines (22 loc) · 891 Bytes
/
saucer_game_object.h
File metadata and controls
32 lines (22 loc) · 891 Bytes
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
#pragma once
#include "enemy_game_object.h"
#include "powerup.h"
#include "defs.h"
#include "collision.h"
namespace game {
// Inherits from GameObject
class SaucerGameObject : public GameObject {
public:
SaucerGameObject(const glm::vec3& position, GLuint texture, GLint num_elements, GameObject *p, bool collidable, float radius, Name name);
// Update function for moving the player object around
void Update(double delta_time) override;
void Render(Shader& shader, double current_time) override;
//inherited virtual functions
bool ValidCollision(GameObject* other_game_object, double deltatime);
bool HandleCollision(GameObject* other_game_object, double deltatime);
//getters
//setters
private:
GameObject* target_;
}; // class PlayerGameObject
} // namespace game