MCPcopy Create free account
hub / github.com/carbonengine/trinity / UpdateVariableMask

Method UpdateVariableMask

trinity/Controllers/Tr2StateMachineState.cpp:136–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void Tr2StateMachineState::UpdateVariableMask() const
137{
138 m_transitionVariableMask = 0;
139 bool hasMask = true;
140 for( auto it = begin( m_transitions ); it != end( m_transitions ); ++it )
141 {
142 auto mask = ( *it )->GetVariableMask();
143 if( mask == 0 )
144 {
145 hasMask = false;
146 }
147 else
148 {
149 m_transitionVariableMask |= mask;
150 }
151 }
152 if( !hasMask )
153 {
154 m_transitionVariableMask = 0;
155 }
156}
157
158void Tr2StateMachineState::Unlink( UnlinkReason reason )
159{

Callers 1

OnModifiedMethod · 0.80

Calls 3

beginFunction · 0.50
endFunction · 0.50
GetVariableMaskMethod · 0.45

Tested by

no test coverage detected