Game Engine 2D Platformer
Public Member Functions | List of all members
AIPhysicsComponent Class Reference

PhysicsComponent class used manage a GameEntity's movement. More...

#include <AIPhysicsComponent.hpp>

Inheritance diagram for AIPhysicsComponent:
Inheritance graph
[legend]
Collaboration diagram for AIPhysicsComponent:
Collaboration graph
[legend]

Public Member Functions

 AIPhysicsComponent ()
 Constuctor for PhysicsComponent. More...
 
 ~AIPhysicsComponent ()
 Destructor for PhysicsComponent. More...
 
void StartUp ()
 Initialize attributes for PhysicsComponent. More...
 
void ShutDown ()
 Destroy attributes for PhysicsComponent. More...
 
void Update (GameEntity &entity)
 Updates the attributes for PhysicsComponent. More...
 
- Public Member Functions inherited from Component
 Component ()=default
 Constuctor for Component class. More...
 
virtual void Render (GameEntity &entity)
 To render objects for children classes. More...
 
virtual void LoadImage (std::string filepath, SDL_Renderer *ren)
 To initalize loadImages for children classes. More...
 
virtual void HandleEvent (GameEntity &entity)
 Handle the events of GameEntity object for children classes. More...
 

Detailed Description

PhysicsComponent class used manage a GameEntity's movement.

Constructor & Destructor Documentation

◆ AIPhysicsComponent()

AIPhysicsComponent::AIPhysicsComponent ( )

Constuctor for PhysicsComponent.

◆ ~AIPhysicsComponent()

AIPhysicsComponent::~AIPhysicsComponent ( )

Destructor for PhysicsComponent.

Member Function Documentation

◆ ShutDown()

void AIPhysicsComponent::ShutDown ( )
virtual

Destroy attributes for PhysicsComponent.

Reimplemented from Component.

◆ StartUp()

void AIPhysicsComponent::StartUp ( )
virtual

Initialize attributes for PhysicsComponent.

Reimplemented from Component.

◆ Update()

void AIPhysicsComponent::Update ( GameEntity entity)
virtual

Updates the attributes for PhysicsComponent.

Parameters
entityGameEntity Object

Implements Component.


The documentation for this class was generated from the following files: