Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
CameraMovement::Utils::ICameraBehavior Class Referenceabstract

Base interface for camera behaviors. More...

#include <CameraBehavior.hpp>

Inheritance diagram for CameraMovement::Utils::ICameraBehavior:
CameraMovement::Utils::DefaultBehavior CameraMovement::Utils::DontMoveBehavior ChaseCameraBehavior ThirdPlayerCameraBehavior

Public Member Functions

 ICameraBehavior ()=default
 ICameraBehavior (Engine::Core &)
 Optional constructor that receives the engine core.
virtual ~ICameraBehavior ()=default
virtual void Update (Engine::Core &core, Resource::CameraManager &manager, Object::Component::Transform &transform, Object::Component::Camera &camera, float deltaTime)=0
 Update the camera behavior.

Detailed Description

Base interface for camera behaviors.

Derived classes should implement the Update method to control camera movement.

Constructor & Destructor Documentation

◆ ICameraBehavior() [1/2]

CameraMovement::Utils::ICameraBehavior::ICameraBehavior ( )
default

◆ ICameraBehavior() [2/2]

CameraMovement::Utils::ICameraBehavior::ICameraBehavior ( Engine::Core & )
inlineexplicit

Optional constructor that receives the engine core.

Implementations may use this constructor to register callbacks or systems tied to the engine core during construction.

◆ ~ICameraBehavior()

virtual CameraMovement::Utils::ICameraBehavior::~ICameraBehavior ( )
virtualdefault

Member Function Documentation

◆ Update()

virtual void CameraMovement::Utils::ICameraBehavior::Update ( Engine::Core & core,
Resource::CameraManager & manager,
Object::Component::Transform & transform,
Object::Component::Camera & camera,
float deltaTime )
pure virtual

Update the camera behavior.

Parameters
coreThe engine core.
managerThe camera manager.
transformThe transform component of the camera.
cameraThe camera component.
deltaTimeThe time elapsed since the last frame.

Implemented in CameraMovement::Utils::DefaultBehavior, CameraMovement::Utils::DontMoveBehavior, ChaseCameraBehavior, and ThirdPlayerCameraBehavior.


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