MCPcopy Create free account
hub / github.com/crossuo/crossuo / SetFlags

Method SetFlags

src/GameObjects/GameObject.cpp:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void CGameObject::SetFlags(uint8_t val)
90{
91 bool poisoned = IsPoisoned();
92 bool yellowHits = YellowHits();
93 m_Flags = val;
94 if (poisoned != IsPoisoned() || yellowHits != YellowHits())
95 {
96 g_GumpManager.UpdateContent(Serial, 0, GT_STATUSBAR);
97 g_GumpManager.UpdateContent(Serial, 0, GT_TARGET_SYSTEM);
98 }
99}
100
101void CGameObject::SetName(const astr_t &newName)
102{

Callers 3

UpdateGameObjectMethod · 0.80
UpdatePlayerMethod · 0.80
PACKET_HANDLERFunction · 0.80

Calls 1

UpdateContentMethod · 0.45

Tested by

no test coverage detected