RigsofRods
Soft-body Physics Simulation
Public Member Functions | Protected Attributes
RoR::Replay Class Reference

#include <Replay.h>

+ Collaboration diagram for RoR::Replay:

Public Member Functions

 Replay (ActorPtr b, int nframes)
 
 ~Replay ()
 
void * getWriteBuffer (int type)
 
void * getReadBuffer (int offset, int type, unsigned long &time)
 
unsigned long getLastReadTime ()
 
void writeDone ()
 
void onPhysicsStep ()
 
void replayStepActor ()
 
float getPrecision () const
 
float getReplayPositionSec () const
 
int getNumFrames () const
 
int getCurrentFrame () const
 
bool isValid ()
 
void UpdateInputEvents ()
 

Protected Attributes

ActorPtr m_actor
 
float m_replay_timer = 0.f
 
float ar_replay_precision = 1.f
 
int ar_replay_pos = 0
 
int m_replay_pos_prev = 0
 
Ogre::Timer * replayTimer = nullptr
 
int numFrames = 0
 
bool outOfMemory = false
 
int writeIndex = 0
 
int firstRun = 0
 
unsigned long curFrameTime = 0
 
node_simple_tnodes = nullptr
 
beam_simple_tbeams = nullptr
 
unsigned long * times = nullptr
 

Detailed Description

Definition at line 39 of file Replay.h.

Constructor & Destructor Documentation

◆ Replay()

Replay::Replay ( ActorPtr  b,
int  nframes 
)

Definition at line 35 of file Replay.cpp.

+ Here is the call graph for this function:

◆ ~Replay()

Replay::~Replay ( )

Definition at line 73 of file Replay.cpp.

Member Function Documentation

◆ getCurrentFrame()

int RoR::Replay::getCurrentFrame ( ) const
inline

Definition at line 54 of file Replay.h.

+ Here is the caller graph for this function:

◆ getLastReadTime()

unsigned long Replay::getLastReadTime ( )

Definition at line 178 of file Replay.cpp.

+ Here is the caller graph for this function:

◆ getNumFrames()

int RoR::Replay::getNumFrames ( ) const
inline

Definition at line 53 of file Replay.h.

+ Here is the caller graph for this function:

◆ getPrecision()

float RoR::Replay::getPrecision ( ) const
inline

Definition at line 51 of file Replay.h.

+ Here is the caller graph for this function:

◆ getReadBuffer()

void * Replay::getReadBuffer ( int  offset,
int  type,
unsigned long &  time 
)

Definition at line 147 of file Replay.cpp.

◆ getReplayPositionSec()

float RoR::Replay::getReplayPositionSec ( ) const
inline

Definition at line 52 of file Replay.h.

◆ getWriteBuffer()

void * Replay::getWriteBuffer ( int  type)

Definition at line 87 of file Replay.cpp.

◆ isValid()

bool RoR::Replay::isValid ( )
inline

Definition at line 55 of file Replay.h.

+ Here is the caller graph for this function:

◆ onPhysicsStep()

void Replay::onPhysicsStep ( )

Definition at line 183 of file Replay.cpp.

◆ replayStepActor()

void Replay::replayStepActor ( )

Definition at line 215 of file Replay.cpp.

+ Here is the caller graph for this function:

◆ UpdateInputEvents()

void Replay::UpdateInputEvents ( )

Definition at line 251 of file Replay.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeDone()

void Replay::writeDone ( )

Definition at line 134 of file Replay.cpp.

Field Documentation

◆ ar_replay_pos

int RoR::Replay::ar_replay_pos = 0
protected

Definition at line 62 of file Replay.h.

◆ ar_replay_precision

float RoR::Replay::ar_replay_precision = 1.f
protected

Definition at line 61 of file Replay.h.

◆ beams

beam_simple_t* RoR::Replay::beams = nullptr
protected

Definition at line 73 of file Replay.h.

◆ curFrameTime

unsigned long RoR::Replay::curFrameTime = 0
protected

Definition at line 69 of file Replay.h.

◆ firstRun

int RoR::Replay::firstRun = 0
protected

Definition at line 68 of file Replay.h.

◆ m_actor

ActorPtr RoR::Replay::m_actor
protected

Definition at line 59 of file Replay.h.

◆ m_replay_pos_prev

int RoR::Replay::m_replay_pos_prev = 0
protected

Definition at line 63 of file Replay.h.

◆ m_replay_timer

float RoR::Replay::m_replay_timer = 0.f
protected

Definition at line 60 of file Replay.h.

◆ nodes

node_simple_t* RoR::Replay::nodes = nullptr
protected

Definition at line 72 of file Replay.h.

◆ numFrames

int RoR::Replay::numFrames = 0
protected

Definition at line 65 of file Replay.h.

◆ outOfMemory

bool RoR::Replay::outOfMemory = false
protected

Definition at line 66 of file Replay.h.

◆ replayTimer

Ogre::Timer* RoR::Replay::replayTimer = nullptr
protected

Definition at line 64 of file Replay.h.

◆ times

unsigned long* RoR::Replay::times = nullptr
protected

Definition at line 74 of file Replay.h.

◆ writeIndex

int RoR::Replay::writeIndex = 0
protected

Definition at line 67 of file Replay.h.


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