#include <C4PlayerControl.h>
Public Member Functions | |
C4PlayerControlAssignmentSets ()=default | |
~C4PlayerControlAssignmentSets ()=default | |
void | Clear () |
void | CompileFunc (StdCompiler *pComp) |
bool | operator== (const C4PlayerControlAssignmentSets &cmp) const |
bool | ResolveRefs (C4PlayerControlDefs *pControlDefs) |
void | SortAssignments () |
void | MergeFrom (const C4PlayerControlAssignmentSets &Src, C4PlayerControlAssignmentSet::MergeMode merge_mode) |
C4PlayerControlAssignmentSet * | CreateEmptySetByTemplate (const C4PlayerControlAssignmentSet &template_set) |
void | RemoveSetByName (const char *set_name) |
C4PlayerControlAssignmentSet * | GetSetByName (const char *szName) |
C4PlayerControlAssignmentSet * | GetDefaultSet () |
int32_t | GetSetIndex (const C4PlayerControlAssignmentSet *set) const |
C4PlayerControlAssignmentSet * | GetSetByIndex (int32_t index) |
size_t | GetSetCount () const |
Definition at line 278 of file C4PlayerControl.h.
|
default |
|
default |
void C4PlayerControlAssignmentSets::Clear | ( | ) |
Definition at line 711 of file C4PlayerControl.cpp.
Referenced by C4PlayerControlFile::Clear(), C4Game::Clear(), C4Game::InitPlayerControlSettings(), C4Game::InitPlayerControlUserSettings(), and C4ConfigControls::ResetKeys().
void C4PlayerControlAssignmentSets::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 716 of file C4PlayerControl.cpp.
References StdCompiler::Default(), StdCompiler::isRegistry(), StdCompiler::isSerializer(), mkNamingAdapt(), mkSTLContainerAdapt(), StdCompiler::SEP_NONE, and StdCompiler::Value().
C4PlayerControlAssignmentSet * C4PlayerControlAssignmentSets::CreateEmptySetByTemplate | ( | const C4PlayerControlAssignmentSet & | template_set | ) |
Definition at line 820 of file C4PlayerControl.cpp.
Referenced by MergeFrom().
C4PlayerControlAssignmentSet * C4PlayerControlAssignmentSets::GetDefaultSet | ( | ) |
Definition at line 793 of file C4PlayerControl.cpp.
Referenced by C4Player::InitControl().
C4PlayerControlAssignmentSet * C4PlayerControlAssignmentSets::GetSetByIndex | ( | int32_t | index | ) |
Definition at line 810 of file C4PlayerControl.cpp.
Referenced by C4StartupPlrPropertiesDlg::OnCtrlChangeLeft(), and C4StartupPlrPropertiesDlg::OnCtrlChangeRight().
C4PlayerControlAssignmentSet * C4PlayerControlAssignmentSets::GetSetByName | ( | const char * | szName | ) |
Definition at line 785 of file C4PlayerControl.cpp.
References WildcardMatch().
Referenced by C4Player::InitControl(), MergeFrom(), C4StartupPlrPropertiesDlg::OnCtrlChangeLeft(), C4StartupPlrPropertiesDlg::OnCtrlChangeRight(), and C4StartupPlrPropertiesDlg::UserClose().
|
inline |
Definition at line 304 of file C4PlayerControl.h.
Referenced by C4StartupPlrPropertiesDlg::OnCtrlChangeLeft(), and C4StartupPlrPropertiesDlg::OnCtrlChangeRight().
int32_t C4PlayerControlAssignmentSets::GetSetIndex | ( | const C4PlayerControlAssignmentSet * | set | ) | const |
Definition at line 800 of file C4PlayerControl.cpp.
Referenced by C4PlayerControlAssignmentSet::GetPicture(), C4StartupPlrPropertiesDlg::OnCtrlChangeLeft(), and C4StartupPlrPropertiesDlg::OnCtrlChangeRight().
void C4PlayerControlAssignmentSets::MergeFrom | ( | const C4PlayerControlAssignmentSets & | Src, |
C4PlayerControlAssignmentSet::MergeMode | merge_mode | ||
) |
Definition at line 731 of file C4PlayerControl.cpp.
References CreateEmptySetByTemplate(), GetSetByName(), C4PlayerControlAssignmentSet::MergeFrom(), C4PlayerControlAssignmentSet::MM_Inherit, and WildcardMatch().
Referenced by C4Game::InitPlayerControlSettings(), C4Game::InitPlayerControlUserSettings(), and C4Game::LoadAdditionalSystemGroup().
bool C4PlayerControlAssignmentSets::operator== | ( | const C4PlayerControlAssignmentSets & | cmp | ) | const |
Definition at line 726 of file C4PlayerControl.cpp.
void C4PlayerControlAssignmentSets::RemoveSetByName | ( | const char * | set_name | ) |
Definition at line 827 of file C4PlayerControl.cpp.
References SEqual().
bool C4PlayerControlAssignmentSets::ResolveRefs | ( | C4PlayerControlDefs * | pControlDefs | ) |
Definition at line 772 of file C4PlayerControl.cpp.
Referenced by C4Game::InitPlayerControlSettings(), C4Game::InitPlayerControlUserSettings(), C4Game::LoadAdditionalSystemGroup(), and C4Game::OnKeyboardLayoutChanged().
void C4PlayerControlAssignmentSets::SortAssignments | ( | ) |
Definition at line 779 of file C4PlayerControl.cpp.