82 SDL_RendererFlip
flip = SDL_FLIP_NONE;
113 std::vector<std::shared_ptr<Component>> components;
entityType
Definition: Constants.hpp:54
The interface class for different components to inherit.
Definition: Component.hpp:16
EntityManager class that stores all entities within the game.
Definition: EntityManager.hpp:24
Represents an interactable entity in the game that includes Main Character, NPC, Tiles ,...
Definition: GameEntity.hpp:22
void StartUp(Vector2D position, Vector2D velocity, int width, int height)
Initializes attributes for the GameEntity object.
Definition: GameEntity.cpp:21
int GetWidth()
Returns the Width of GameEntity.
Definition: GameEntity.cpp:76
Vector2D velocity
Definition: GameEntity.hpp:81
GameEntity(entityType eType)
Constructor of GameEntity.
Definition: GameEntity.cpp:8
SDL_Rect dest
Definition: GameEntity.hpp:84
Vector2D initialPosition
Definition: GameEntity.hpp:105
~GameEntity()
Destructor of GameEntity.
Definition: GameEntity.cpp:13
bool collectItemSound
Definition: GameEntity.hpp:92
int GetHeight()
Returns the Height of GameEntity.
Definition: GameEntity.cpp:84
void Reset()
Resets the GameEntity.
Definition: GameEntity.cpp:114
SDL_Rect src
Definition: GameEntity.hpp:84
bool isGrounded
Definition: GameEntity.hpp:103
SDL_Rect * GetRectangle()
Returns the Rectangle for GameEntity.
Definition: GameEntity.cpp:60
SDL_RendererFlip flip
Definition: GameEntity.hpp:82
bool win
Definition: GameEntity.hpp:86
bool deathSound
Definition: GameEntity.hpp:91
void ShutDown()
Destrotys and free attributes of the GameEntity Class.
std::vector< int > collectablesAvailable
Definition: GameEntity.hpp:96
void Render()
Renders the object on screen for the GameEntity Class.
Definition: GameEntity.cpp:49
int score
Definition: GameEntity.hpp:89
int xPosTile
Definition: GameEntity.hpp:95
Vector2D initialVelocity
Definition: GameEntity.hpp:106
entityType eType
Definition: GameEntity.hpp:101
void AddComponent(std::shared_ptr< Component > component)
Adds different components to the GameEntity.
Definition: GameEntity.cpp:92
SDL_Event GetEvent()
Returns the Event for GameEntity.
Definition: GameEntity.cpp:68
bool eatSound
Definition: GameEntity.hpp:90
EntityManager * entityManager
Definition: GameEntity.hpp:104
bool lose
Definition: GameEntity.hpp:87
void SetEvent(SDL_Event &e)
Sets the SDL_Event for GameEntity class.
Definition: GameEntity.cpp:100
bool collectable
Definition: GameEntity.hpp:99
bool jumpSound
Definition: GameEntity.hpp:93
SDL_Rect rect
Definition: GameEntity.hpp:83
void SetManager(EntityManager *entityManager)
Sets EntityManager for GameEntity.
Definition: GameEntity.cpp:109
SDL_Texture * m_texture
Definition: GameEntity.hpp:85
void Update()
Updates the position of the game entity.
Definition: GameEntity.cpp:38
int lives
Definition: GameEntity.hpp:88
int arrayPos
Definition: GameEntity.hpp:98
bool jumping
Definition: GameEntity.hpp:102
Vector2D position
Definition: GameEntity.hpp:80
bool cameraFlag
Definition: GameEntity.hpp:94
Definition: TinyMath.hpp:18