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

AIComponent class used to add movement to a NPC game entity. More...

#include <AIComponent.hpp>

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

Public Member Functions

 AIComponent ()
 Constructor of AIComponent. More...
 
 ~AIComponent ()
 Destructor of AIComponent. More...
 
void StartUp ()
 StartUp function to initialize values of AIComponent. More...
 
void ShutDown ()
 Function to safely destroy and shut attributes of AIComponent. More...
 
void Update (GameEntity &entity)
 Update function of AIComponent. 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

AIComponent class used to add movement to a NPC game entity.

Constructor & Destructor Documentation

◆ AIComponent()

AIComponent::AIComponent ( )

Constructor of AIComponent.

◆ ~AIComponent()

AIComponent::~AIComponent ( )

Destructor of AIComponent.

Member Function Documentation

◆ ShutDown()

void AIComponent::ShutDown ( )
virtual

Function to safely destroy and shut attributes of AIComponent.

Reimplemented from Component.

◆ StartUp()

void AIComponent::StartUp ( )
virtual

StartUp function to initialize values of AIComponent.

Reimplemented from Component.

◆ Update()

void AIComponent::Update ( GameEntity entity)
virtual

Update function of AIComponent.

Updates the position of the game entity.

Parameters
entityGameEntity Object
GameEntity&entity

Implements Component.


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