Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
CameraShakeSystemClass Class Reference

#include <camerashakesystem.h>

Classes

class  CameraShakerClass
 

Public Types

enum  { FLAGS_NONE = 0 , FLAGS_IGNOREPOSITION }
 

Public Member Functions

 CameraShakeSystemClass (void)
 
 ~CameraShakeSystemClass (void)
 
void Add_Camera_Shake (const Vector3 &position, float radius=50.0f, float duration=1.5f, float power=1.0f)
 
void Timestep (float dt)
 
bool IsCameraShaking (void)
 
void Update_Camera_Shaker (Vector3 camera_position, Vector3 *shaker_angles)
 

Protected Attributes

MultiListClass< CameraShakerClassCameraShakerList
 

Detailed Description

CameraShakeSystemClass This class encapsulates all of the logic and data needed to implement camera "shakes" These are used to simulate explosions, earthquakes, etc.

Definition at line 55 of file camerashakesystem.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FLAGS_NONE 
FLAGS_IGNOREPOSITION 

Definition at line 62 of file camerashakesystem.h.

Constructor & Destructor Documentation

◆ CameraShakeSystemClass()

CameraShakeSystemClass::CameraShakeSystemClass ( void )

Definition at line 186 of file camerashakesystem.cpp.

◆ ~CameraShakeSystemClass()

CameraShakeSystemClass::~CameraShakeSystemClass ( void )

Definition at line 190 of file camerashakesystem.cpp.

Member Function Documentation

◆ Add_Camera_Shake()

void CameraShakeSystemClass::Add_Camera_Shake ( const Vector3 & position,
float radius = 50.0f,
float duration = 1.5f,
float power = 1.0f )

Definition at line 202 of file camerashakesystem.cpp.

◆ IsCameraShaking()

bool CameraShakeSystemClass::IsCameraShaking ( void )

Definition at line 223 of file camerashakesystem.cpp.

◆ Timestep()

void CameraShakeSystemClass::Timestep ( float dt)

Definition at line 239 of file camerashakesystem.cpp.

◆ Update_Camera_Shaker()

void CameraShakeSystemClass::Update_Camera_Shaker ( Vector3 camera_position,
Vector3 * shaker_angles )

Definition at line 265 of file camerashakesystem.cpp.

Member Data Documentation

◆ CameraShakerList

MultiListClass<CameraShakerClass> CameraShakeSystemClass::CameraShakerList
protected

Definition at line 105 of file camerashakesystem.h.


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