#include <C4StringTable.h>
Public Member Functions | |
C4StringTable () | |
virtual | ~C4StringTable () |
C4String * | RegString (StdStrBuf String) |
C4String * | RegString (const char *s) |
C4String * | FindString (const char *strString) const |
Public Attributes | |
C4String | P [P_LAST] |
Friends | |
class | C4String |
Definition at line 562 of file C4StringTable.h.
C4StringTable::C4StringTable | ( | ) |
Definition at line 80 of file C4StringTable.cpp.
References DFA_ATTACH, DFA_CONNECT, DFA_DIG, DFA_FLIGHT, DFA_FLOAT, DFA_HANGLE, DFA_KNEEL, DFA_LIFT, DFA_PULL, DFA_PUSH, DFA_SCALE, DFA_SWIM, DFA_THROW, DFA_WALK, P, P_AbortCall, P_Accel, P_Action, P_ActMap, P_Algo, P_AllowEditing, P_Alpha, P_Amplitude, P_Animation, P_AsyncGet, P_Attach, P_B, P_BackgroundColor, P_Blasted, P_BlastIncinerate, P_BlitMode, P_BorderBound, P_Bottom, P_BreatheWater, P_CanMoveCenter, P_CausedBy, P_Collectible, P_CollisionDensity, P_CollisionVertex, P_Color, P_Command, P_CommandTarget, P_Construction, P_ContactCalls, P_ContactIncinerate, P_ContainBlast, P_CopyDefault, P_CorrosionResist, P_Damage, P_DampingX, P_DampingY, P_Decel, P_Decoration, P_DefaultEditorProp, P_DefaultValue, P_DefaultValueFunction, P_DefinitionPriority, P_Delay, P_Delegate, P_DescendPath, P_Description, P_Destruction, P_DigFree, P_Directions, P_Display, P_Distance, P_DrawArrows, P_Echo_Damping, P_Echo_Delay, P_Echo_Feedback, P_Echo_LRDelay, P_Echo_Spread, P_EdgeDelegate, P_Edges, P_EditCursorCommands, P_EditOnSelection, P_EditorActions, P_EditorCollection, P_EditorHelp, P_EditorInitialize, P_EditorPlacementLimit, P_EditorPropertyChanged, P_EditorProps, P_Effect, P_Elements, P_Empty, P_EmptyName, P_EndCall, P_Equalizer_High_Cutoff, P_Equalizer_High_Gain, P_Equalizer_Low_Cutoff, P_Equalizer_Low_Gain, P_Equalizer_Mid1_Center, P_Equalizer_Mid1_Gain, P_Equalizer_Mid1_Width, P_Equalizer_Mid2_Center, P_Equalizer_Mid2_Gain, P_Equalizer_Mid2_Width, P_FacetBase, P_FacetTargetStretch, P_FacetTopFace, P_Filter, P_FixedOffset, P_FlipDir, P_ForceSerialization, P_ForceX, P_ForceY, P_Function, P_G, P_Get, P_GetRandomPoint, P_Global, P_GraphicsName, P_Group, P_Hgt, P_hgt, P_Hold, P_HorizontalFix, P_ID, P_Idle, P_IncineratingObj, P_InflameLandscape, P_InLiquidAction, P_Interval, P_IsPointContained, P_Iterations, P_JumpSpeed, P_Key, P_Layer, P_Left, P_Length, P_LightOffset, P_LineAttach, P_LineColors, P_LineWidth, P_Margin, P_Material, P_MaterialIncinerate, P_Max, P_MaxBreath, P_MaxEnergy, P_MeshTransformation, P_Min, P_Mode, P_MouseDrag, P_MouseDragImage, P_MusicBreakChance, P_MusicBreakMax, P_MusicBreakMin, P_MusicMaxPositionMemory, P_Name, P_NextAction, P_NoOtherAction, P_ObjectDisabled, P_OffX, P_OffY, P_OnClick, P_OnClose, P_OnCollision, P_OnMouseIn, P_OnMouseOut, P_OnUpdate, P_Op, P_Open, P_OptionKey, P_Options, P_Parallaxity, P_Phase, P_PhaseCall, P_PictureTransformation, P_Placement, P_Plane, P_Player, P_PlayList, P_Priority, P_Procedure, P_proplist, P_Proplist, P_Prototype, P_R, P_Ratio, P_Relative, P_Reverb_Air_Absorption_GainHF, P_Reverb_Decay_HFLimit, P_Reverb_Decay_HFRatio, P_Reverb_Decay_Time, P_Reverb_Density, P_Reverb_Diffusion, P_Reverb_Gain, P_Reverb_GainHF, P_Reverb_Late_Reverb_Delay, P_Reverb_Late_Reverb_Gain, P_Reverb_Reflections_Delay, P_Reverb_Reflections_Gain, P_Reverb_Room_Rolloff_Factor, P_Reverse, P_Right, P_Rotation, P_Scale, P_Scenario, P_SCENPAR, P_Seed, P_Select, P_Set, P_SetGlobal, P_SetRoot, P_ShortName, P_Size, P_Smoke, P_SolidMaskPlane, P_Sorted, P_Sound, P_Source, P_Speed, P_Start, P_StartCall, P_StartFromObject, P_Std, P_Step, P_Stop, P_Storage, P_Stretch, P_StructureFix, P_Style, P_Symbol, P_Target, P_Text, P_ThrowSpeed, P_Time, P_Timer, P_Tooltip, P_Top, P_Touchable, P_Translatable, P_Translate, P_TurnAction, P_Type, P_Uniforms, P_Value, P_ValueKey, P_VertexDelegate, P_VerticalFix, P_Vertices, P_Visibility, P_Wdt, P_wdt, P_X, P_x, P_Y, and P_y.
|
virtual |
Definition at line 339 of file C4StringTable.cpp.
References C4Set< T >::First(), FormatString(), C4Set< T >::GetSize(), C4Set< T >::Next(), P, P_LAST, s, and Strings.
C4String * C4StringTable::FindString | ( | const char * | strString | ) | const |
Definition at line 376 of file C4StringTable.cpp.
References C4Set< T >::Get().
Referenced by C4Value::CompileFunc(), C4PropList::GetFunc(), C4Game::GetTranslatedString(), RegString(), C4ScriptGuiWindowProperty::ToC4Value(), C4AulCompiler::CodegenAstVisitor::visit(), and C4AulCompiler::ConstexprEvaluator::visit().
|
inline |
Definition at line 569 of file C4StringTable.h.
References RegString(), and s.
Referenced by RegString().
Definition at line 367 of file C4StringTable.cpp.
References C4String, FindString(), s, and String().
Referenced by C4Value::C4Value(), C4Command::CompileFunc(), C4Property::CompileFunc(), C4Value::CompileFunc(), C4Def::GetActionByName(), C4MapScriptHost::InitFunctionMap(), C4Def::Load(), C4ScenarioParameterDefs::RegisterScriptConstants(), C4Object::SetActionByName(), String(), C4ScriptGuiWindowProperty::ToC4Value(), C4ScriptGuiWindow::ToC4Value(), C4GraphicsOverlay::UpdateFacet(), C4AulCompiler::ConstexprEvaluator::visit(), C4AulCompiler::CodegenAstVisitor::visit(), and C4AulCompiler::ConstantResolver::visit().
|
friend |
Definition at line 575 of file C4StringTable.h.
Referenced by RegString().
Definition at line 579 of file C4StringTable.h.
Referenced by C4Game::AllocateTranslatedString(), C4PropertyPath::C4PropertyPath(), C4PropListScen::C4PropListScen(), C4StringTable(), C4PropList::Call(), C4Object::ChangeDef(), C4PropList::CompileFunc(), C4ScriptHost::CopyPropList(), C4ScriptGuiWindow::CreateFromPropList(), C4Def::GetActionByName(), C4PropList::GetFunc(), C4Object::GetProperties(), C4Effect::GetProperties(), C4PropList::GetProperty(), C4PropList::GetPropertyArray(), C4PropList::GetPropertyBool(), C4PropList::GetPropertyByS(), C4Object::GetPropertyByS(), C4Effect::GetPropertyByS(), C4PropList::GetPropertyInt(), C4PropList::GetPropertyP(), C4PropList::GetPropertyPropList(), C4PropList::GetPropertyStr(), C4PropList::GetSortedLocalProperties(), C4Game::GetTranslatedString(), C4PropList::GetUnsortedProperties(), C4MapScriptAlgo::GetXYProps(), C4GameScriptHost::Load(), C4GameScriptHost::LoadData(), C4AulParse::Parse_PropList(), C4ScenarioParameterDefs::RegisterScriptConstants(), C4PropList::ResetProperty(), C4Object::ResetProperty(), C4Effect::ResetProperty(), C4ParticleProperties::Set(), C4ScriptGuiWindowProperty::Set(), C4Object::SetActionByName(), C4PropList::SetName(), C4PropList::SetProperty(), C4PropList::SetPropertyByS(), C4Object::SetPropertyByS(), C4Effect::SetPropertyByS(), C4PropListScen::SetPropertyByS(), and ~C4StringTable().