MCPcopy Create free account
hub / github.com/bwapi/bwapi / processInterfaceEvents

Method processInterfaceEvents

bwapi/BWAPIClient/Source/GameImpl.cpp:139–167  ·  view source on GitHub ↗

------------------------------------------- INTERFACE EVENT UPDATE ---------------------------------------

Source from the content-addressed store, hash-verified

137
138 //------------------------------------------- INTERFACE EVENT UPDATE ---------------------------------------
139 void GameImpl::processInterfaceEvents()
140 {
141 // GameImpl events
142 this->updateEvents();
143
144 // UnitImpl events
145 for(Unit u : this->accessibleUnits)
146 {
147 u->exists() ? u->updateEvents() : u->interfaceEvents.clear();
148 }
149
150 // ForceImpl events
151 for(Force f : this->forces)
152 f->updateEvents();
153
154 // BulletImpl events
155 for(Bullet b : this->bullets)
156 {
157 b->exists() ? b->updateEvents() : b->interfaceEvents.clear();
158 }
159
160 // RegionImpl events
161 for(Region r : this->regionsList)
162 r->updateEvents();
163
164 // PlayerImpl events
165 for(Player p : this->playerSet)
166 p->updateEvents();
167 }
168 //------------------------------------------------- ON MATCH START -----------------------------------------
169 void GameImpl::onMatchStart()
170 {

Callers 1

onMatchFrameMethod · 0.95

Calls 3

updateEventsMethod · 0.80
existsMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected