DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetMostSignificantBleedingSource()

int BleedingSourcesManagerBase::GetMostSignificantBleedingSource ( )
inlineprotected

См. определение в файле BleedingSourcesManagerServer.c строка 95

96 {
97 int bleeding_sources_bits = m_Player.GetBleedingBits();
98
99 float highest_flow;
100 int highest_flow_bit;
101 int bit_offset;
102
103 for(int i = 0; i < BIT_INT_SIZE; i++)
104 {
105 int bit = 1 << bit_offset;
106
107 if( (bit & bleeding_sources_bits) != 0 )
108 {
109 BleedingSourceZone meta = GetBleedingSourceMeta(bit);
110 if(meta)
111 {
112 if( meta.GetFlowModifier() > highest_flow )
113 {
114 highest_flow = meta.GetFlowModifier();
115 highest_flow_bit = bit;
116 //Print(meta.GetSelectionName());
117 }
118 }
119 }
120 bit_offset++;
121 }
122 return highest_flow_bit;
123 }
const int BIT_INT_SIZE
Определения BitArray.c:4
float GetFlowModifier()
Определения BleedingSourceZone.c:61
BleedingSourceZone GetBleedingSourceMeta(int bit)
Определения BleedingSourcesManagerBase.c:127

Перекрестные ссылки BIT_INT_SIZE, GetBleedingSourceMeta(), BleedingSourceZone::GetFlowModifier() и m_Player.

Используется в RemoveMostSignificantBleedingSource().