ScummVM API documentation
Alcachofa::CameraV2 Class Referencefinal
Inheritance diagram for Alcachofa::CameraV2:
Alcachofa::CameraV1 Alcachofa::Camera

Public Member Functions

void update () override
 
void setRoomBounds (Graphic &background) override
 
void setFollow (WalkingCharacter *target) override
 
- Public Member Functions inherited from Alcachofa::CameraV1
Math::Angle rotation () const override
 
float scale () const override
 
void preUpdate () override
 
void update () override
 
void setRoomBounds (Graphic &background) override
 
void setFollow (WalkingCharacter *target) override
 
void onChangedRoom (bool resetCamera) override
 
void onTriggeredDoor (WalkingCharacter *target) override
 
void onTriggeredDoor (Common::Point fixedPosition) override
 
void onScriptChangedCharacter (MainCharacterKind kind) override
 
void onUserChangedCharacter () override
 
void onOpenMenu () override
 
void onCloseMenu () override
 
void syncGame (Common::Serializer &s) override
 
void lerpOrSet (Common::Point target, int32 mode)
 
WalkingCharacter * followTarget () const
 
Task * disguise (Process &process, int32 duration)
 
- Public Member Functions inherited from Alcachofa::Camera
virtual Math::Angle rotation () const =0
 
virtual float scale () const =0
 
virtual void preUpdate ()=0
 
virtual void update ()=0
 
virtual void setRoomBounds (Graphic &background)=0
 
virtual void setFollow (WalkingCharacter *target)=0
 
virtual void onChangedRoom (bool resetCamera)=0
 
virtual void onTriggeredDoor (WalkingCharacter *target)=0
 
virtual void onTriggeredDoor (Common::Point fixedPosition)=0
 
virtual void onScriptChangedCharacter (MainCharacterKind kind)=0
 
virtual void onUserChangedCharacter ()=0
 
virtual void onOpenMenu ()=0
 
virtual void onCloseMenu ()=0
 
virtual void syncGame (Common::Serializer &s)=0
 
Math::Vector3d transform2Dto3D (Math::Vector3d v) const
 
Math::Vector3d transform3Dto2D (Math::Vector3d v) const
 
Common::Point transform3Dto2D (Common::Point p) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Alcachofa::Camera
static Camera * create ()
 
- Protected Member Functions inherited from Alcachofa::CameraV1
void updateLerping (Math::Vector3d &newCenter, float deltaTime, float speed)
 
- Protected Member Functions inherited from Alcachofa::Camera
Math::Vector3d setAppliedCenter (Math::Vector3d center)
 
void setupMatricesAround (Math::Vector3d center)
 
- Protected Attributes inherited from Alcachofa::CameraV1
WalkingCharacter * _followTarget = nullptr
 
Math::Vector3d _usedCenter
 
Math::Vector3d _target
 
bool _isLerping = false
 
float _lerpSpeed = 0.0f
 
uint32 _lastUpdateTime = 0
 
- Protected Attributes inherited from Alcachofa::Camera
float _roomScale = 1.0f
 
Math::Vector2d _roomMin = Math::Vector2d(-10000, -10000)
 
Math::Vector2d _roomMax = Math::Vector2d(10000, 10000)
 
Math::Vector3d _appliedCenter
 
Math::Matrix4 _mat3Dto2D
 
Math::Matrix4 _mat2Dto3D
 

Member Function Documentation

◆ update()

void Alcachofa::CameraV2::update ( )
overridevirtual

Reimplemented from Alcachofa::CameraV1.

◆ setRoomBounds()

void Alcachofa::CameraV2::setRoomBounds ( Graphic &  background)
overridevirtual

Reimplemented from Alcachofa::CameraV1.

◆ setFollow()

void Alcachofa::CameraV2::setFollow ( WalkingCharacter *  target)
overridevirtual

Reimplemented from Alcachofa::CameraV1.


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