|
Bomberman
|
A class allowing one to place the camera in the scene. More...
#include <CameraComponent.hpp>
Public Member Functions | |
| Component * | clone (WAL::Entity &entity) const override |
| Clone a component for another or the same entity. More... | |
| CameraComponent (WAL::Entity &, Vector3f cameraTarget=Vector3f()) | |
| Ctor. More... | |
| CameraComponent (const CameraComponent &)=default | |
| A camera component is copy constructable. More... | |
| ~CameraComponent () override=default | |
| Default destructor. More... | |
| CameraComponent & | operator= (const CameraComponent &)=delete |
| A camera component can't be assigned. More... | |
Public Member Functions inherited from WAL::Component | |
| Component & | operator= (const Component &)=delete |
| A component can't be assigned. More... | |
| virtual | ~Component ()=default |
| A virtual destructor. More... | |
| virtual void | onStart () |
| The entity or this component has just been enabled. More... | |
| virtual void | onStop () |
| The entity or this component has just been disable. More... | |
Public Attributes | |
| Vector3f | target |
| The camera's target, the cam will look at this position. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WAL::Component | |
| Component (Entity &entity) | |
| A component can't be instantiated, it should be derived. More... | |
| Component (const Component &)=default | |
| A component can't be instantiated, it should be derived. More... | |
Protected Attributes inherited from WAL::Component | |
| Entity & | _entity |
| The entity that own this component. More... | |
A class allowing one to place the camera in the scene.
|
explicit |
Ctor.
|
default |
A camera component is copy constructable.
|
overridedefault |
Default destructor.
|
overridevirtual |
Clone a component for another or the same entity.
| entity | The entity that owns the ne component. |
Implements WAL::Component.
|
delete |
A camera component can't be assigned.
| Vector3f BBM::CameraComponent::target |
The camera's target, the cam will look at this position.
1.8.17