------------------------------------------- INTERFACE EVENT UPDATE ---------------------------------------
| 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 | { |
no test coverage detected