16 # include <SFML/Graphics.hpp>
41 virtual bool isDead(
void)
const = 0;
47 virtual bool hasBrain(
void)
const = 0;
52 virtual std::string
getType(
void)
const = 0;
62 virtual void setPosition(sf::Vector2f
const& position) = 0;
67 virtual void setIsDead(
bool condition) = 0;
87 virtual void Update(
void) = 0;
95 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const = 0;
virtual void setPosition(sf::Vector2f const &position)=0
Set the current position of the object.
virtual void setElapsedTime(sf::Time &time)=0
Set the elapsed time between the previous and the current update.
virtual void draw(sf::RenderTarget &target, sf::RenderStates states) const =0
Allow the object to be drawn on the window.
Define the interface of an object.
Definition: i_object.h:24
virtual std::string getType(void) const =0
Get the ky (type) of the object in the environment.
virtual IObject * Clone(void)=0
Clone the current object.
virtual ~IObject(void)
Destructor.
Definition: i_object.h:30
virtual void Update(void)=0
Update the object.
Contains all the class that define the graphic environment.
virtual bool isDead(void) const =0
Verify if the object is dead (not be able to draw).
virtual void setIsDead(bool condition)=0
Set the current state of the object.
virtual bool hasBrain(void) const =0
Verify if the object contains a neural network.