4 #include "../../Core/C_Vec2.h"
33 virtual void update(
float dt) = 0;
void updatePosWithVelocities(float dt)
Updates the position of the Entity using the velocities.
Definition: EB_Velocity.cpp:13
C_Vec2 dimensions
The dimensions of the Entity.
Definition: EB_Entity.h:94
An Entity that contains velocities.
Definition: EB_Velocity.h:10
Contains variables and functions to be inherited by classes that are about Entities.
Definition: EB_Entity.h:10
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
EB_Velocity(C_Texture *sprite, C_Vec2 pos, C_Vec2 dimensions, C_Vec2 velocities, std::string iD, float *universalSpee)
Constructs the Velocity Entity.
Definition: EB_Velocity.cpp:3
void setVelocities(C_Vec2 velocity)
Sets the velocities of the Entity.
Definition: EB_Velocity.cpp:19
virtual void update(float dt)=0
A pure virtual function that updates the Entity.
C_Vec2 velocities
The velocities of the Entity.
Definition: EB_Velocity.h:55
C_Vec2 pos
The position of the Entity.
Definition: EB_Entity.h:92
C_Texture * sprite
A pointer to the Entity Texture.
Definition: EB_Entity.h:90
~EB_Velocity()
Destructs the Velocity Entity object.
Definition: EB_Velocity.cpp:9
C_Vec2 getVelocities()
Gets the velocities of the Entity.
Definition: EB_Velocity.cpp:24
std::string iD
The ID of the type of Entity.
Definition: EB_Entity.h:96
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13