13 lines
No EOL
279 B
C++
13 lines
No EOL
279 B
C++
#pragma once
|
|
#include <SFML/Graphics.hpp>
|
|
|
|
class Enemy : public sf::Drawable
|
|
{
|
|
sf::RectangleShape rectangle;
|
|
public:
|
|
explicit Enemy(sf::Vector2f position);
|
|
|
|
void look_at(sf::Vector2f target);
|
|
|
|
void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
|
|
}; |