Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/CCmpUnitMotion.h
Show First 20 Lines • Show All 511 Lines • ▼ Show 20 Lines | pass_class_t GetPassabilityClass() const override | ||||
return m_PassClass; | return m_PassClass; | ||||
} | } | ||||
std::string GetPassabilityClassName() const override | std::string GetPassabilityClassName() const override | ||||
{ | { | ||||
return m_PassClassName; | return m_PassClassName; | ||||
} | } | ||||
virtual void SetPassabilityClassName(const std::string& passClassName) | void SetPassabilityClassName(const std::string& passClassName) override | ||||
phosit: could this be a 'const std::string_view'? | |||||
lyvUnsubmitted Done Inline ActionsIIRC, no C++17 yet. And shouldn't it be just string_view? lyv: IIRC, no C++17 yet. And shouldn't it be just `string_view`? | |||||
StanAuthorUnsubmitted Done Inline ActionsWe definitely have C++17. In fact it was one of the big problems when updating Spidermonkey. Stan: We definitely have C++17. In fact it was one of the big problems when updating Spidermonkey. | |||||
{ | { | ||||
m_PassClassName = passClassName; | m_PassClassName = passClassName; | ||||
CmpPtr<ICmpPathfinder> cmpPathfinder(GetSystemEntity()); | CmpPtr<ICmpPathfinder> cmpPathfinder(GetSystemEntity()); | ||||
if (cmpPathfinder) | if (cmpPathfinder) | ||||
m_PassClass = cmpPathfinder->GetPassabilityClass(passClassName); | m_PassClass = cmpPathfinder->GetPassabilityClass(passClassName); | ||||
} | } | ||||
fixed GetCurrentSpeed() const override | fixed GetCurrentSpeed() const override | ||||
▲ Show 20 Lines • Show All 1,373 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
could this be a 'const std::string_view'?