RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Member Functions | Private Attributes
RoR::CharacterFactory Class Reference

#include <CharacterFactory.h>

Public Member Functions

 CharacterFactory ()
 
CharacterCreateLocalCharacter ()
 
CharacterGetLocalCharacter ()
 
void DeleteAllCharacters ()
 
void UndoRemoteActorCoupling (ActorPtr actor)
 
void Update (float dt)
 
void handleStreamData (std::vector< RoR::NetRecvPacket > packet)
 

Private Member Functions

void createRemoteInstance (int sourceid, int streamid)
 
void removeStreamSource (int sourceid)
 

Private Attributes

std::unique_ptr< Characterm_local_character
 
std::vector< std::unique_ptr< Character > > m_remote_characters
 

Detailed Description

Definition at line 39 of file CharacterFactory.h.

Constructor & Destructor Documentation

◆ CharacterFactory()

RoR::CharacterFactory::CharacterFactory ( )
inline

Definition at line 42 of file CharacterFactory.h.

Member Function Documentation

◆ CreateLocalCharacter()

Character * CharacterFactory::CreateLocalCharacter ( )

Definition at line 32 of file CharacterFactory.cpp.

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

◆ createRemoteInstance()

void CharacterFactory::createRemoteInstance ( int  sourceid,
int  streamid 
)
private

Definition at line 51 of file CharacterFactory.cpp.

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

◆ DeleteAllCharacters()

void CharacterFactory::DeleteAllCharacters ( )

Definition at line 101 of file CharacterFactory.cpp.

+ Here is the caller graph for this function:

◆ GetLocalCharacter()

Character* RoR::CharacterFactory::GetLocalCharacter ( )
inline

Definition at line 44 of file CharacterFactory.h.

+ Here is the caller graph for this function:

◆ handleStreamData()

void CharacterFactory::handleStreamData ( std::vector< RoR::NetRecvPacket packet)

Definition at line 108 of file CharacterFactory.cpp.

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

◆ removeStreamSource()

void CharacterFactory::removeStreamSource ( int  sourceid)
private

Definition at line 67 of file CharacterFactory.cpp.

+ Here is the caller graph for this function:

◆ UndoRemoteActorCoupling()

void CharacterFactory::UndoRemoteActorCoupling ( ActorPtr  actor)

Definition at line 90 of file CharacterFactory.cpp.

+ Here is the caller graph for this function:

◆ Update()

void CharacterFactory::Update ( float  dt)

Definition at line 80 of file CharacterFactory.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ m_local_character

std::unique_ptr<Character> RoR::CharacterFactory::m_local_character
private

Definition at line 54 of file CharacterFactory.h.

◆ m_remote_characters

std::vector<std::unique_ptr<Character> > RoR::CharacterFactory::m_remote_characters
private

Definition at line 55 of file CharacterFactory.h.


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