mirror of
https://github.com/HowestDAE/dae16-VerhulstBram.git
synced 2025-12-16 21:01:48 +01:00
22 lines
367 B
C++
22 lines
367 B
C++
#pragma once
|
|
#include "Texture.h"
|
|
|
|
class OrbitingObject {
|
|
public:
|
|
OrbitingObject(const Vector2f& orbit, float distance, float speed, Texture* texture, float offset = 0);
|
|
|
|
void Update(float elapsedSecs);
|
|
void Draw() const;
|
|
|
|
|
|
private:
|
|
Texture* m_Texture;
|
|
Vector2f m_Position;
|
|
Vector2f m_Orbit;
|
|
float m_Distance;
|
|
float m_Speed;
|
|
|
|
float m_currentCycle{ 0 };
|
|
|
|
};
|