Leviathan game engine
Leviathan::Camera Class Reference

Properties that a camera entity has (will also need a Position component) More...

#include <Components.h>

+ Inheritance diagram for Leviathan::Camera:

Public Member Functions

 Camera (uint8_t fov=90, bool soundperceiver=true)
 Creates at specific position. More...
- Public Member Functions inherited from Leviathan::Component
 Component (COMPONENT_TYPE type)
 Component (const Component &)=delete
Componentoperator= (const Component &)=delete

Public Attributes

uint16_t FOV
 Horizontal (ie. "normal") field of view. More...
bool SoundPerceiver
- Public Attributes inherited from Leviathan::Component
bool Marked
 Type of this component, used for network serialization. More...

Static Public Attributes

static constexpr auto TYPE = COMPONENT_TYPE::Camera

Detailed Description

Properties that a camera entity has (will also need a Position component)

Definition at line 714 of file Components.h.

Constructor & Destructor Documentation

◆ Camera()

Leviathan::Camera::Camera ( uint8_t  fov = 90,
bool  soundperceiver = true 

Creates at specific position.

This now takes the horizontal instead of vertical FOV

Definition at line 718 of file Components.h.

718  :
719  Component(TYPE), FOV(fov), SoundPerceiver(soundperceiver)
720  {}
Component(COMPONENT_TYPE type)
Definition: Component.h:54
static constexpr auto TYPE
Definition: Components.h:731
uint16_t FOV
Horizontal (ie. "normal") field of view.
Definition: Components.h:725

Member Function Documentation


Leviathan::Camera::REFERENCE_HANDLE_UNCOUNTED_TYPE ( Camera  )

Member Data Documentation


uint16_t Leviathan::Camera::FOV

Horizontal (ie. "normal") field of view.

Definition at line 725 of file Components.h.

◆ SoundPerceiver

bool Leviathan::Camera::SoundPerceiver

Definition at line 727 of file Components.h.


constexpr auto Leviathan::Camera::TYPE = COMPONENT_TYPE::Camera

Definition at line 731 of file Components.h.

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